API
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

IRegisterRepository.cs 913B

123456789101112131415161718192021222324
  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. }
  23. }