public IAccountant CreateAccountant(string firstName, string lastName) { IAccountant accountant = _accountingFactory.CreateAccountant(firstName, lastName); _accountantRepository.Add(accountant); return(accountant); }
public IReport WriteReport(string accountantId, string orderId, List <string> productsIds, decimal unitPrice, string description) { IAccountant accountant = _accountantRepository.GetById(accountantId); IReport report = accountant.WriteReport(description); _reportRepository.Add(report); return(report); }
public void Add(IAccountant accountant) { if (!_accountants.Any(x => x.AccountantId == accountant.AccountantId)) { _accountants.Add(accountant); } else { throw new Exception("This accountant record already exists."); } }
public UserManagerController(ApplicationDbContext context, IAccountant accountant, IUpload upload, IHostingEnvironment env, IHttpContextAccessor httpContextAccessor, RoleManager <IdentityRole> roleMgr, UserManager <ApplicationUser> userMrg) { _accountant = accountant; _upload = upload; _env = env; _httpContextAccessor = httpContextAccessor; roleManager = roleMgr; userManager = userMrg; _context = context; }
public Worker( ILogger <Worker> logger, IOptionsMonitor <TimeSettings> optionsSnapshot, IModulDengiClient client, IConfirmationManager confirmationManager, IAccountant accountant) { this.logger = logger; this.confirmationCheckTimeSettings = optionsSnapshot.Get(nameof(this.confirmationCheckTimeSettings)); this.newProjectCheckTimeSettings = optionsSnapshot.Get(nameof(this.newProjectCheckTimeSettings)); this.client = client; this.confirmationManager = confirmationManager; this.accountant = accountant; }
public AccountController(IDocumentSession session, IJwtValidator jwtValidator, IAccountant accountant) { _session = session; _jwtValidator = jwtValidator; _accountant = accountant; }
public void CreateAccountant(string firstName, string lastName) { IAccountant accountant = _employeeFacade.CreateAccountant(firstName, lastName); }
public AccountantController(FinancialContext ctx, IFMUnitOfWork uow, IAccountant patrick) { this._Context = ctx; this._Service = patrick; this._Uow = uow; }
public FinancialController(FinancialContext ctx, IFMUnitOfWork uow, IFMUser user, IAccountant accountant, IMasterAccountant masterAccountant) { this._Context = ctx; this._UserRole = user; this._Uow = uow; this._AccountantRole = accountant; this._MasterAccountantRole = masterAccountant; }
public MyFoodTrucksController(IDocumentSession session, IAccountant accountant) { _session = session; _accountant = accountant; }