// GET: api/ClaimEstimationType/ public dynamic Get(string code) { try { return(ClaimEstimationTypeMdl.get_estimation(code)); } catch (Exception e) { return(new { state = false, message = "Server Error", exception = e }); } }
public object Check(string code) { try { var result = ClaimEstimationTypeMdl.get_estimation(code); return(result != null ? (object)new { state = true, name = result.CLM_EST_TYPE_NAME } : new { state = false }); } catch (Exception e) { return(new { state = false, message = "Server Error", exception = e }); } }