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