Skip to content
Snippets Groups Projects
IUserService.cs 507 B
Newer Older
Lucca Santangelo's avatar
Lucca Santangelo committed
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
Lucca Santangelo's avatar
Lucca Santangelo committed
using Tsi1.BusinessLayer.Dtos;
using Tsi1.BusinessLayer.Helpers;
Lucca Santangelo's avatar
Lucca Santangelo committed
using Tsi1.DataLayer.Entities;

namespace Tsi1.BusinessLayer.Interfaces
{
    public interface IUserService
    {
Lucca Santangelo's avatar
Lucca Santangelo committed
        Task<ServiceResult<User>> Authenticate(string username, string password);
Lucca Santangelo's avatar
Lucca Santangelo committed
        Task<ServiceResult<User>> Create(UserRegisterDto dto, string type);
esantangelo's avatar
esantangelo committed

        Task<ServiceResult<List<UserPreviewDto>>> GetAll();
Lucca Santangelo's avatar
Lucca Santangelo committed
    }
}