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')")); } }