Beispiel #1
0
        public async Task CreateAgentAsync(string managerUserId, ApplicationUser newUser, AddAgentViewModel model)
        {
            var agency = _dbContext.Agencies.FirstOrDefault(c => c.ManagerId.Equals(managerUserId));

            if (agency != null)
            {
                await _agentService.CreateAgentAsync(newUser.Id, agency.Id, model);
            }
        }