邮件服务注入

Uat_Study
hang 2022-05-25 18:17:33 +08:00
parent bafd8759d8
commit 536d80718e
2 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,9 @@ namespace IRaCIS.Application.Services
_hostEnvironment = hostEnvironment;
_mapper = mapper;
_tokenService = tokenService;
_userRepository = userRepository;
}

View File

@ -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)))