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 1.0KB

1234567891011121314151617181920212223242526
  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. IEnumerable<User> GetAllUsers();
  10. IEnumerable<Agency> GetAllAgencies();
  11. IEnumerable<Individual> GetAllIndividuals();
  12. User GetById(int id);
  13. Agency GetByAgencyId(int id);
  14. Individual GetByIndividualId(int id);
  15. User Create(User user, string password, bool save);
  16. Agency CreateAgency(AgencyDto agency);
  17. void CreatePerson(UserDto individual, PersonType personType, bool save, Agency agency);
  18. void Update(User user, string password = null);
  19. void UpdateAgency(Agency agency, string agencyname = null);
  20. void UpdatePerson(Person person, PersonType personType);
  21. void Delete(int id);
  22. void DeleteAgency(int id);
  23. void DeleteIndividual(int id);
  24. }
  25. }