public object Search(string q) { try { return(ClaimEstimationTravelMdl.search_estimations(q)); } catch (Exception e) { return(new { state = false, message = "Server Error", exception = e }); } }
public object Save([FromBody] CLM_EST_HEAD estimations) { try { ClaimEstimationTravelMdl.save_estimation(estimations); return(new { state = true, message = "Estimation successfully Saved" }); } catch (Exception e) { return(new { state = false, message = e }); } }