using System.Collections.Generic; using System.Threading.Tasks; using _0_Framework.Application; using _0_Framework.Domain; using CompanyManagment.App.Contracts.Checkout; using CompanyManagment.App.Contracts.Employer; namespace Company.Domain.empolyerAgg; public interface IEmployerRepository : IRepository { List GetEmployers(); List GetEmployers(List id); EditEmployer GetDetails(long id); List GetEmployerByWorkshopId(long workshopId); List GetEmployerByContracrtingPartyID(long contractingPartyId); List Search(EmployerSearchModel searchModel); List GetEmployerByEmployerIds(List employerIds); ////client bool Remove(long id); bool CreateForClient(Employer command); List SearchForClient(EmployerSearchModel searchModel); List GetEmployersForClient(long acountID); bool CreateLegalsForClient(Employer legalEmployerData); bool ExistsEmployerAccount(string commandNationalcode); bool ExistsEmployerAccountNationalId(string commandNationalId); bool ExistsEmployerAccountById(string nationalcode, long commandId); bool ExistsEmployerAccountNationalIdEmployerId(string nationalId, long commandId); bool ExistsEmployerAccountRegisterId(string commandRegisterId); bool ExistsEmployerAccountLName(string commandLName); #region Mahan List GetEmployersHasWorkshop(); Task> GetSelectList(string search); #endregion #region NewByHeydari OperationResult DeleteEmployer(long id); List GetEmployerWithFNameOrLName(string searchText); List GetEmployerWithIdNumberOrRegisterId(string searchText); List GetEmployerWithNationalcodeOrNationalId(string searchText); OperationResult DeActiveAll(long id); OperationResult ActiveAll(long id); List GetAllEmployers(); #endregion #region Insurance (string employerName, bool isLegal) InsuranceEmployerByWorkshopId(long workshopId); #endregion #region Api Task> GetEmployerList(GetEmployerSearchModel searchModel); Task GetLegalEmployerDetail(long id); Task GetRealEmployerDetail(long id); //Task> GetSelectList(string search); Task> DeactivateWithSubordinates(long id); #endregion }