// Gets the code from the account associated to the project private async Task <string> GetAccountCodeAsync(SisProject project) { var account = await _accountRepo.GetByIdAsync(project.AccountId); return(account.Code); }
/// <summary> /// Default constructor for the SIS project adapter /// </summary> /// <param name="project"><see cref="SisProject"/></param> /// <param name="employeeRepo"><see cref="ISisEmployeeRepository"/></param> public SisProjectAdapter(SisProject project, string AccountCode, ISisEmployeeRepository employeeRepo) { _project = project; _employeeRepo = employeeRepo; this.AccountCode = AccountCode; }