This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
NG_2023_Kanban/NG_2023_Kanban.BusinessLayer/Interfaces/IUserService.cs
Stanislav Mykhailenko 90db952f0c
Partially redo roles
2023-05-22 19:52:34 +03:00

15 lines
474 B
C#

using NG_2023_Kanban.BusinessLayer.Models;
namespace NG_2023_Kanban.BusinessLayer.Interfaces
{
public interface IUserService
{
Task<UserModel> GetAsync(int id);
Task<ICollection<UserModel>> GetAllAsync();
Task DeleteAsync(int id);
Task UpdateAsync(int id, UserModel user);
Task<UserModel?> LoginAsync(UserModel user);
Task<UserModel> RegisterAsync(UserModel user);
Task<bool> CheckAdminAsync(int id);
}
}