shopping-assistant-api/ShoppingAssistantApi.Application/IServices/IUsersService.cs
2023-09-22 23:02:20 +03:00

15 lines
539 B
C#

using ShoppingAssistantApi.Application.Models.Dtos;
using ShoppingAssistantApi.Application.Paging;
namespace ShoppingAssistantApi.Application.IServices;
public interface IUsersService
{
Task AddUserAsync(UserDto dto, CancellationToken cancellationToken);
Task<PagedList<UserDto>> GetUsersPageAsync(int pageNumber, int pageSize, CancellationToken cancellationToken);
Task<UserDto> GetUserAsync(string id, CancellationToken cancellationToken);
Task UpdateUserAsync(UserDto dto, CancellationToken cancellationToken);
}