Exemple #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="container">Dependency injection container</param>
 /// <param name="account">Account that will be updated</param>
 public UpdateLoginPageViewModel(
     IContainer container,
     BeforeOurTime.Models.Modules.Account.Models.Account account) : base(container)
 {
     VMUpdateAccount  = new VMUpdateAccount(container, account);
     AccountService   = container.Resolve <IAccountService>();
     Account          = account;
     _originalAccount = JsonConvert.DeserializeObject <BeforeOurTime.Models.Modules.Account.Models.Account>(JsonConvert.SerializeObject(account));
 }
Exemple #2
0
        /// <summary>
        /// Update the account's password
        /// </summary>
        /// <returns></returns>
        public async Task <BeforeOurTime.Models.Modules.Account.Models.Account> UpdatePasswordAsync()
        {
            Account = await VMUpdateAccount.UpdatePasswordAsync();

            return(Account);
        }