public ActionResult Create(MusicCategory category) { BizMusicCategory.Insert(category); return RedirectToAction("List"); }
public ActionResult Edit(MusicCategory category) { BizMusicCategory.Update( category.CategoryID, cate => new MusicCategory { Name = category.Name, OrderNo = category.OrderNo } ); return RedirectToAction("List"); }
partial void UpdateMusicCategory(MusicCategory instance);
partial void DeleteMusicCategory(MusicCategory instance);
partial void InsertMusicCategory(MusicCategory instance);