namespace CSR.Application.Interfaces; using CSR.Domain.Entities; public interface IUserRepository { Task GetByIdAsync(int id); Task GetByUsernameAsync(string username); // Task GetByEmailAsync(string email); Task?> GetAllByRoleIdAsync(int roleId); Task AddAsync(User user); Task UpdateAsync(User user); Task DeleteAsync(int id); }