コード例 #1
0
 public JsonResult ListOfTrucks()
 {
     try
     {
         var trucks = _truckService.RetrieveAllTrucks();
         return(Json(trucks, JsonRequestBehavior.AllowGet));
     }
     catch (Exception)
     {
         throw;
     }
 }