API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IRegisterRepository.cs 953B

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