邮件服务注入
This commit is contained in:
@@ -47,6 +47,9 @@ namespace IRaCIS.Application.Services
|
||||
|
||||
_hostEnvironment = hostEnvironment;
|
||||
|
||||
_mapper = mapper;
|
||||
|
||||
_tokenService = tokenService;
|
||||
_userRepository = userRepository;
|
||||
|
||||
}
|
||||
|
||||
@@ -454,6 +454,7 @@ namespace IRaCIS.Application.Services
|
||||
/// </summary>
|
||||
/// <param name="userAddModel"></param>
|
||||
/// <returns></returns>
|
||||
[UnitOfWork]
|
||||
public async Task<IResponseOutput<UserAddedReturnDTO>> AddUser(UserCommand userAddModel)
|
||||
{
|
||||
if (await _userRepository.AnyAsync(t => t.UserName == userAddModel.UserName || (t.EMail == userAddModel.EMail && t.UserTypeId == userAddModel.UserTypeId)))
|
||||
|
||||
Reference in New Issue
Block a user