示例#1
0
 public ActionResult Index()
 {
     try
     {
         return(View(Mapper.Map <IEnumerable <FloorViewModel> >(_floorService.GetAll())));
     }
     catch (Exception ex)
     {
         return(JavaScript($"ShowResult('{ex.Message}','failure')"));
     }
 }