13 lines
339 B
C#
13 lines
339 B
C#
using BCards.Web.Models;
|
|
|
|
namespace BCards.Web.Repositories;
|
|
|
|
public interface IUserRepository
|
|
{
|
|
Task<User?> GetByIdAsync(string id);
|
|
Task<User?> GetByEmailAsync(string email);
|
|
Task<User> CreateAsync(User user);
|
|
Task<User> UpdateAsync(User user);
|
|
Task DeleteAsync(string id);
|
|
Task<bool> ExistsAsync(string email);
|
|
} |