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