IUserService.cs 830 B

1234567891011121314151617181920212223242526272829
  1. using Microsoft.AspNetCore.Http;
  2. using MTWorkHR.Application.Models;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace MTWorkHR.Application.Identity
  9. {
  10. public interface IUserService
  11. {
  12. Task<List<UserDto>> GetAll();
  13. Task<UserDto> GetById(string userId);
  14. Task Delete(string id);
  15. Task<UserDto> Create(UserDto input);
  16. Task<UserDto> Update(UserDto input);
  17. Task<UserDto> UpdateWithoutChildren(UserDto input);
  18. Task ForgetPasswordMail(string input);
  19. Task<bool> ResetPassword(ResetPasswordDto input);
  20. Task<bool> ForgetPassword(ForgetPasswordDto model);
  21. Task<bool> ConfirmEmail(ForgetPasswordDto model);
  22. Task<bool> IsExpiredToken(ForgetPasswordDto model);
  23. }
  24. }