renis-backend/Repositories/Users/IUserRepository.cs

14 lines
397 B
C#
Raw Permalink Normal View History

2024-09-07 09:02:42 +00:00
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();
}