public bool ChangePassword(string prevPass, string newPass, string userName, AccountDto currentAccount) { AccountPresenter accPresenter = new AccountPresenter(); var result = accPresenter.ChangePassword(userName, newPass, prevPass); if (result != null) { currentAccount.PassChangeDate = result.PassChangeDate; AccountBindingList.ResetBindings(); return(true); } return(false); }
public bool UpdateAccount(AccountDto acc) { AccountPresenter accPresenter = new AccountPresenter(); if (accPresenter.UpdateAccount(acc) != null) { AccountBindingList.ResetBindings(); acc.ApplicationDomainDtoList.RemoveAll(it => it.State == Framework.Common.CommonBase.DtoObjectState.Deleted); return(true); } return(false); }