예제 #1
0
        // 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);
        }
예제 #2
0
 /// <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;
 }