public IHttpActionResult SaveRateCard(RateCard rateCard) { try { var result = new RateCardBO().SaveRateCard(rateCard); if (result) { return(Ok(UTILITY.SUCCESSMSG)); } else { return(BadRequest()); } } catch (Exception ex) { return(InternalServerError(ex)); } }
public IHttpActionResult GetRateCardValues(Int16 VehicleType, Int16 VehicleCategory) { try { var rateCardList = new RateCardBO().GetList().Where(x => x.VehicleType == VehicleType && x.Category == VehicleCategory && x.RateType == 1350); if (rateCardList != null) { return(Ok(rateCardList)); } else { return(NotFound()); } } catch (Exception ex) { return(InternalServerError(ex)); } }
public IHttpActionResult GetRateCardList() { try { var rateCardList = new RateCardBO().GetList(); if (rateCardList != null) { return(Ok(rateCardList)); } else { return(NotFound()); } } catch (Exception ex) { return(InternalServerError(ex)); } }
public IHttpActionResult GetRateCard(Int16 category) { try { var rateCard = new RateCardBO().GetRateCard(new RateCard { Category = category }); if (rateCard != null) { return(Ok(rateCard)); } else { return(NotFound()); } } catch (Exception ex) { return(InternalServerError(ex)); } }
public IHttpActionResult DeleteRateCard(Int16 category) { try { var result = new RateCardBO().DeleteRateCard(new RateCard { Category = category }); if (result) { return(Ok(UTILITY.DELETEMSG)); } else { return(NotFound()); } } catch (Exception ex) { return(InternalServerError(ex)); } }
public ActionResult Ratecard() { var result = new RateCardBO().getRateCardList(); return(View(result)); }
public ActionResult pickCMobile() { var result = new RateCardBO().getRateCardList(); return(View(result)); }