Exemplo n.º 1
0
 public ENResult search()
 {
     try
     {
         using (erpStoreEntities db = new erpStoreEntities())
         {
             List <uspGEStoreSearch_Result> result = db.uspGEStoreSearch(PUser, PReturnCode, PReturnMessage).ToList();
             return(new ENResult(Convert.ToInt32(PReturnCode.Value), Convert.ToString(PReturnMessage.Value), result));
         }
     }
     catch (Exception ex)
     {
         return(PUnexpectedError(ex));
     }
 }