Esempio n. 1
0
 public object search(string query)
 {
     try
     {
         return(ClaimEstimationTypeMdl.search_estimations(query));
     }
     catch (Exception e)
     {
         return(new { state = false, message = "Server Error", exception = e });
     }
 }
Esempio n. 2
0
 public object lov()
 {
     try
     {
         return(ClaimEstimationTypeMdl.get_lov_estimation());
     }
     catch (Exception e)
     {
         return(new { state = false, message = "Server Error", exception = e });
     }
 }
Esempio n. 3
0
 // 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 });
     }
 }
Esempio n. 4
0
 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 });
     }
 }
Esempio n. 5
0
        public object save([FromBody] List <MS_CLM_EST_TYPE> estimates)
        {
            try
            {
                foreach (var cty in estimates)
                {
                    ClaimEstimationTypeMdl.save_estimation(cty);
                }

                return(new { state = true, message = "Estimation Type Successfully Created" });
            }
            catch (Exception e)
            {
                return(new { state = false, message = "Server Error", exception = e });
            }
        }