renis-backend/Repositories/IUserRepository.cs
Nikolai Papin f669a44a29 User repo
2024-09-07 12:02:42 +03:00

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();
}