Esempio n. 1
0
 public ENResult updatePassword(uspSEUserLogin_Result data, string passwordNew)
 {
     try
     {
         using (erpStoreEntities db = new erpStoreEntities())
         {
             db.uspSEUserUpdatePassword(data.userName, passwordNew, PUser, PReturnCode, PReturnMessage);
             return(new ENResult(Convert.ToInt32(PReturnCode.Value), Convert.ToString(PReturnMessage.Value)));
         }
     }
     catch (Exception ex)
     {
         return(PUnexpectedError(ex));
     }
 }
Esempio n. 2
0
 public ENResult update(uspSEUserLogin_Result data)
 {
     try
     {
         using (erpStoreEntities db = new erpStoreEntities())
         {
             db.uspSEUserUpdate(data.userName, data.idProfile, data.idStore, data.name, data.lastname, PUser, PReturnCode, PReturnMessage);
             return(new ENResult(Convert.ToInt32(PReturnCode.Value), Convert.ToString(PReturnMessage.Value)));
         }
     }
     catch (Exception ex)
     {
         return(PUnexpectedError(ex));
     }
 }