14 lines
397 B
C#
14 lines
397 B
C#
using Renis.Database.Models;
|
|
|
|
namespace Renis.Repositories;
|
|
|
|
public interface IUserRepository
|
|
{
|
|
public Task<bool> AddUser(User user);
|
|
public Task<bool> UpdateUser(User user);
|
|
public Task<bool> DeleteUser(User user);
|
|
public Task<User?> GetUserById(long id);
|
|
public Task<User?> GetUserByPhone(string phone);
|
|
public IQueryable<User> GetUsers();
|
|
public Task<bool> Save();
|
|
} |