moved service to separate project (Kontur developer said "WTF WHY ARE U STORING SERVICES IN INFRASTRUCTURE SLAVA D")
This commit is contained in:
parent
147fb683f7
commit
41ff1555f8
11 changed files with 33 additions and 9 deletions
|
|
@ -1,25 +0,0 @@
|
|||
using SurveyBackend.Core.Models;
|
||||
using SurveyBackend.Core.Repositories;
|
||||
using SurveyBackend.Core.Services;
|
||||
|
||||
namespace SurveyBackend.Infrastructure.Services;
|
||||
|
||||
public class UserService : IUserService
|
||||
{
|
||||
private readonly IUserRepository _userRepository;
|
||||
|
||||
public UserService(IUserRepository userRepository)
|
||||
{
|
||||
_userRepository = userRepository;
|
||||
}
|
||||
|
||||
public async Task<User?> GetUserByEmail(string email)
|
||||
{
|
||||
return await _userRepository.GetUserByEmail(email);
|
||||
}
|
||||
|
||||
public async Task CreateUserAsync(User user)
|
||||
{
|
||||
await _userRepository.AddAsync(user);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue