示例#1
0
 public ActionResult EditSave(int id, NewArtistViewModel model)
 {
     if (!ModelState.IsValid)
     {
         ViewBag.Message = _helperService.ModelErrorsToString(ModelState);
         return(Edit(id));
     }
     _artistsService.UpdateArtist(id, model);
     return(RedirectToAction("Details", new { Id = id }));
 }