示例#1
0
 public ActionResult Edit(string id)
 {
     try
     {
         return(View(Mapper.Map <StyleViewModel>(_styleService.GetById(id))));
     }
     catch (Exception ex)
     {
         return(JavaScript($"ShowResult('{ex.Message}','failure')"));
     }
 }