12345678910111213141516171819202122232425 |
- using System.Collections.Generic;
- using UnivateProperties_API.Containers.Users;
- using UnivateProperties_API.Model.Users;
-
- namespace UnivateProperties_API.Repository.Users
- {
- public interface IRegisterRepository
- {
- User Authenticate(string username, string password);
- User Create(User user, string password, bool save);
- Agency CreateAgency(AgencyDto agency);
- void CreatePerson(UserDto individual, PersonType personType, bool save, Agency agency);
- void Update(User userParam, string password = null);
- IEnumerable<User> GetAllUsers();
- IEnumerable<Agency> GetAllAgencies();
- IEnumerable<Individual> GetAllIndividuals();
- User GetById(int id);
- Agency GetByAgencyId(int id);
- Individual GetByIndividualId(int id);
- void Delete(int id);
- void DeleteAgency(int id);
- void DeleteIndividual(int id);
- string UserDetails(int userId);
- }
- }
|