Exemplo n.º 1
0
 // GET: api/Intermediary/5
 public dynamic Get(int id)
 {
     try
     {
         return(IntermediaryCommissionMdl.get_intermcomm(id));
     }
     catch (Exception e)
     {
         return(new { state = false, message = "Server Error", exception = e });
     }
 }
Exemplo n.º 2
0
 public object Check(int code)
 {
     try
     {
         var result = IntermediaryCommissionMdl.get_intermcomm(code);
         return(result != null ? (object)new { state = true, name = result.COM_PROD_CODE } : new { state = false });
     }
     catch (Exception e)
     {
         return(new { state = false, message = "Server Error", exception = e });
     }
 }