public object Save([FromBody] INS_UWD_POLICY_HEAD engineer) { try { var result = PolicyEngineerOtherMdl.save_policy(engineer); return(new { state = true, message = "Other Engineering Policy successfully Saved", result = new { result.POLH_SYS_ID, result.POLH_END_NO, result.POLH_STATUS, result.POLH_TXN_STATE, result.POLH_POL_STATE, result.POLH_DISPLAY_NO, result.POLH_QUT_SER_NO, } }); } catch (Exception e) { return(new { state = false, message = e }); } }
public dynamic Get(int code) { try { return(PolicyEngineerOtherMdl.get_policy(code)); } catch (Exception e) { return(new { state = false, message = "Server Error", exception = e }); } }
public object Search(string q) { try { return(PolicyEngineerOtherMdl.search_policys(q)); } catch (Exception e) { return(new { state = false, message = "Server Error", exception = e }); } }
// GET: PolicyPa public object Get() { try { return(PolicyEngineerOtherMdl.get_policys()); } catch (Exception e) { return(new { state = false, message = "Server Error", exception = e }); } }