API
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

IRegisterRepository.cs 1.2KB

1234567891011121314151617181920212223242526272829
  1. using System.Collections.Generic;
  2. using UnivateProperties_API.Containers.Users;
  3. using UnivateProperties_API.Containers.Users.Simple;
  4. using UnivateProperties_API.Model.Users;
  5. namespace UnivateProperties_API.Repository.Users
  6. {
  7. public interface IRegisterRepository
  8. {
  9. User Authenticate(string username, string password);
  10. User Create(User user, string password, bool save, bool terms);
  11. Agency CreateAgency(AgencyDto agency);
  12. void CreatePerson(UserDto individual, PersonType personType, bool save, Agency agency);
  13. void Update(User userParam, string password = null);
  14. Individual GetIndividualByFPToken(string fpToken);
  15. IEnumerable<User> GetAllUsers();
  16. IEnumerable<Agency> GetAllAgencies();
  17. IEnumerable<Individual> GetAllIndividuals();
  18. User GetById(int id);
  19. Agency GetByAgencyId(int id);
  20. Individual GetByIndividualId(int id);
  21. void Delete(int id);
  22. void DeleteAgency(int id);
  23. void DeleteIndividual(int id);
  24. SimplePersonDto UserDetails(int userId);
  25. void ForgotPasswordMailCheck(string mail);
  26. void UpdatePassword(UserDto user);
  27. }
  28. }