Create models and Clean Arch boilerplate
This commit is contained in:
parent
3926db5446
commit
872dc1e263
21 changed files with 576 additions and 27 deletions
14
CSR.Application/Interfaces/IUserRepository.cs
Normal file
14
CSR.Application/Interfaces/IUserRepository.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
namespace CSR.Application.Interfaces;
|
||||
|
||||
using CSR.Domain.Entities;
|
||||
|
||||
public interface IUserRepository
|
||||
{
|
||||
Task<User?> GetByIdAsync(int id);
|
||||
// Task<User?> GetByEmailAsync(string email);
|
||||
// Task<User?> GetByUsernameAsync(string username);
|
||||
// Task<IEnumerable<User>> GetAllAsync();
|
||||
Task AddAsync(User user);
|
||||
Task UpdateAsync(User user);
|
||||
Task DeleteAsync(int id);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue