1234567891011121314151617181920212223242526272829 |
- using System.Collections.Generic;
- using UnivateProperties_API.Containers.Users;
- using UnivateProperties_API.Containers.Users.Simple;
- 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, bool terms);
- Agency CreateAgency(AgencyDto agency);
- void CreatePerson(UserDto individual, PersonType personType, bool save, Agency agency);
- void Update(User userParam, string password = null);
- Individual GetIndividualByFPToken(string fpToken);
- 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);
- SimplePersonDto UserDetails(int userId);
- void ForgotPasswordMailCheck(string mail);
- void UpdatePassword(UserDto user);
- }
- }
|