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");
 }
Example #3
0
 partial void UpdateMusicCategory(MusicCategory instance);
Example #4
0
 partial void DeleteMusicCategory(MusicCategory instance);
Example #5
0
 partial void InsertMusicCategory(MusicCategory instance);