public object NcdProductPercentage([FromUri] string prdCode) { try { return(NoClaimDiscountMdl.GetProductNCDRates(prdCode)); } catch (Exception e) { return(new { state = false, message = e.Message, exception = e }); } }
public object lov() { try { return(NoClaimDiscountMdl.get_lov_noclaimdiscounts()); } catch (Exception e) { return(new { state = false, message = "Server Error", exception = e }); } }
// GET: api/Product/ public dynamic Get(string code) { try { return(NoClaimDiscountMdl.get_noclaimdiscount(code)); } catch (Exception e) { return(new { state = false, message = "Server Error", exception = e }); } }
public object Save([FromBody] MS_NCD_RISKS noclmdiscount) { try { NoClaimDiscountMdl.save_product(noclmdiscount); return(new { state = true, message = "No Claim Discount successfully Saved" }); } catch (Exception e) { return(new { state = false, message = e }); } }
public object Check(string code) { var result = NoClaimDiscountMdl.get_noclaimdiscount_code(code); return(result != null ? (object)new { state = true, name = result.NCD_DESC } : new { state = false }); }
public object Search([FromUri] string q) => NoClaimDiscountMdl.search_noclaimdiscounts(q);