예제 #1
0
        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 });
            }
        }
예제 #2
0
 public dynamic Get(int code)
 {
     try
     {
         return(PolicyEngineerOtherMdl.get_policy(code));
     }
     catch (Exception e)
     {
         return(new { state = false, message = "Server Error", exception = e });
     }
 }
예제 #3
0
 public object Search(string q)
 {
     try
     {
         return(PolicyEngineerOtherMdl.search_policys(q));
     }
     catch (Exception e)
     {
         return(new { state = false, message = "Server Error", exception = e });
     }
 }
예제 #4
0
 // GET: PolicyPa
 public object Get()
 {
     try
     {
         return(PolicyEngineerOtherMdl.get_policys());
     }
     catch (Exception e)
     {
         return(new { state = false, message = "Server Error", exception = e });
     }
 }