Ejemplo n.º 1
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 });
     }
 }
Ejemplo n.º 2
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 });
     }
 }