API
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

IRegisterRepository.cs 1.0KB

1234567891011121314151617181920212223242526
  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. IEnumerable<User> GetAllUsers();
  15. IEnumerable<Agency> GetAllAgencies();
  16. IEnumerable<Individual> GetAllIndividuals();
  17. User GetById(int id);
  18. Agency GetByAgencyId(int id);
  19. Individual GetByIndividualId(int id);
  20. void Delete(int id);
  21. void DeleteAgency(int id);
  22. void DeleteIndividual(int id);
  23. SimplePersonDto UserDetails(int userId);
  24. }
  25. }