public async Task <UserDTO> AddAsync(UserDTO user) { UserDTO dbUser = await GetByEmailAsync(user.Email); if (dbUser != null) { return(null); } SyllabusManagerUser syllabusUser = user.MakeSyllabusManagerUser(); await _userManager.CreateAsync(syllabusUser, "S4#SAX@2WqS?mkr&"); await _userManager.AddToRolesAsync(syllabusUser, user.Roles); return((await _userManager.FindByEmailAsync(user.Email)).MakeDto(user.Roles)); }