Beispiel #1
0
        }                   //End public ProjectCRUD()

        //ALL
        public void Changepassword(UserChangepasswordVM poViewModel)
        {
            try
            {
                this.oModel = this.db.Users.AsNoTracking().SingleOrDefault(fld => fld.ID == poViewModel.ID);
                poViewModel.PASSWORD_NEW = hlpObf.randomEncrypt(poViewModel.PASSWORD_NEW);
                this.oModel.PASSWORD     = poViewModel.PASSWORD_NEW;
                //Process CRUD
                this.db.Entry(oModel).State = EntityState.Modified;
                //this.db.SaveChanges();
                //this.ID = oModel.ID;
            }                                                                                //End try
            catch (Exception e) { isERR = true; this.ERRMSG = "CRUD - Update" + e.Message; } //End catch
        }                                                                                    //End public void Update
Beispiel #2
0
        } //End public User_Validation()

        //Constructor 2
        public User_Validation(UserChangepasswordVM poViewModel)
        {
            oViewModel_CHANGEPASSWORD = poViewModel;
        } //End public User_Validation()