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)); } }
public IHttpActionResult OperatorModelList() { try { var bookingList = new OperatorVehicleBO().GetModelList(); if (bookingList != null) { return(Ok(bookingList)); } else { return(NotFound()); } } catch (Exception ex) { return(InternalServerError(ex)); } }
public IHttpActionResult CategoryList() { try { var categoryList = new OperatorVehicleBO().GetCategoryList(); if (categoryList != null) { return(Ok(categoryList)); } else { return(NotFound()); } } catch (Exception ex) { return(InternalServerError(ex)); } }