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