Exemple #1
0
 public IHttpActionResult SaveOperatorVehicle(OperatorVehicle operatorVehicle)
 {
     try
     {
         var result = new OperatorVehicleBO().SaveOperatorVehicleDTO(operatorVehicle);
         return(Ok(result ? UTILITY.SUCCESSMSG : UTILITY.FAILEDMSG));
     }
     catch (Exception ex)
     {
         return(InternalServerError(ex));
     }
 }
Exemple #2
0
 public IHttpActionResult OperatorModelList()
 {
     try
     {
         var bookingList = new OperatorVehicleBO().GetModelList();
         if (bookingList != null)
         {
             return(Ok(bookingList));
         }
         else
         {
             return(NotFound());
         }
     }
     catch (Exception ex)
     {
         return(InternalServerError(ex));
     }
 }
Exemple #3
0
 public IHttpActionResult CategoryList()
 {
     try
     {
         var categoryList = new OperatorVehicleBO().GetCategoryList();
         if (categoryList != null)
         {
             return(Ok(categoryList));
         }
         else
         {
             return(NotFound());
         }
     }
     catch (Exception ex)
     {
         return(InternalServerError(ex));
     }
 }