Spaces:
Running
Running
| using FlowAPI.Application.Interfaces; | |
| using FlowAPI.Domain.Entities; | |
| using FlowAPI.Infrastructure.Data; | |
| using Microsoft.EntityFrameworkCore; | |
| namespace FlowAPI.Infrastructure.Repositories | |
| { | |
| public class UserRepository : GenericRepository<User>, IUserRepository | |
| { | |
| public UserRepository(AppDbContext context) : base(context) { } | |
| public async Task<User?> GetByEmailAsync(string email) | |
| { | |
| return await _dbSet.FirstOrDefaultAsync(u => u.Email == email); | |
| } | |
| } | |
| } | |