public AccountController( IAccountService accountService, IHashingService hasher, IChangeService changeService ) : base(accountService, hasher) { this.changeService = changeService; }
public AssistenciaController() { _chamadoService = new ChamadoService(); _sistemaService = new SistemaService(); _severidadeService = new SeveridadeService(); _prioridadeService = new PrioridadeService(); _problemService = new ProblemService(); _changeService = new ChangeService(); }
public SplashViewModel(INavigationService navigationService, ISessionRepository sessionRepository, ISpeakerRepository speakerRepository, IAppService applicationService, IChangeRepository changeRepository, IChangeService changeService) : base(navigationService) { // assignments SessionRepository = sessionRepository; SpeakerRepository = speakerRepository; ChangeRepository = changeRepository; ApplicationService = applicationService; ChangeService = changeService; LoadStatus = "Preparing Application..."; }
public IAccountService UpdateAccountPassword( string passwordHash, UserAccount storedAccount, IChangeService changeService) { if (!string.IsNullOrEmpty(passwordHash) && //password not blank !storedAccount.PasswordHash.Equals(passwordHash)) //password not = to stored { changeService.AddChange(storedAccount, "PasswordHash", storedAccount.PasswordHash, passwordHash); storedAccount.PasswordHash = passwordHash; StoreAccounts(); } return(this); }
public HomeController( ISessionService sessionService, ICoinValueService coinValueService, ICurrency currency, IItemService itemService, IPurchaseService purchaseService, IChangeService changeService) { _sessionService = sessionService; _coinValueService = coinValueService; _currency = currency; _itemService = itemService; _purchaseService = purchaseService; _changeService = changeService; }
public IAccountService UpdateAccountEmail( string email, UserAccount storedAccount, IChangeService changeService) { if (!string.IsNullOrEmpty(email) && //email not blank !storedAccount.Email.Equals(email) && //email not = to stored !AccountExists(email, out _)) //email not already in use { changeService.AddChange(storedAccount, "Email", storedAccount.Email, email); storedAccount.Email = email; StoreAccounts(); } return(this); }
public BlogController(IChangeService changeService, IUserService userService) { _changeService = changeService; _userService = userService; }
public PointOfSaleController(IChangeService changeService, ITransactionService transactionService, ILogger <PointOfSaleController> logger) { ChangeService = changeService; TransactionService = transactionService; _logger = logger; }
public IAccountService UpdateAccountLastName(string lastName, UserAccount storedAccount, IChangeService changeService) { if (!string.IsNullOrEmpty(lastName) && //lastName not blank !storedAccount.FirstName.Equals(lastName)) //lastName not = to stored { changeService.AddChange(storedAccount, "LastName", storedAccount.LastName, lastName); storedAccount.LastName = lastName; StoreAccounts(); } return(this); }