예제 #1
0
 public ActionResult Edit(string id)
 {
     try
     {
         var rack = Mapper.Map <Floor, FloorViewModel>(_floorService.GetById(id));
         return(View(rack));
     }
     catch (Exception ex)
     {
         return(JavaScript($"ShowResult('{ex.Message}','failure')"));
     }
 }