[HttpPost]
public ActionResult Save(IEnumerable<long> data,long playlistid=0)
{
var q = from client in my.Clients(0, 0)
join m in db.Playlists on client.ClientId equals m.ClientId
join meta in db.ContentMetaDatas on m.PlaylistId equals meta.PlaylistId
select new{
m.PlaylistId,
meta.ContentId,
m.PlaylistShortDescription,
meta.ContentMetaDataImage,
m.PlaylistTitle
};
return Json(data);
}
这是我在 mvc 中的控制器代码,用于通过 AJAX Post 更新值。如何更新数据库?