Files
Backend-Api/Company.Domain/empolyerAgg/IEmployerRepository.cs
2025-05-25 21:19:31 +03:30

61 lines
2.2 KiB
C#

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<long, Employer>
{
List<EmployerViewModel> GetEmployers();
List<EmployerViewModel> GetEmployers(List<long> id);
EditEmployer GetDetails(long id);
List<EmprViewModel> GetEmployerByWorkshopId(long workshopId);
List<EmployerViewModel> GetEmployerByContracrtingPartyID(long contractingPartyId);
List<EmployerViewModel> Search(EmployerSearchModel searchModel);
List<EmprViewModel> GetEmployerByEmployerIds(List<long> employerIds);
////client
bool Remove(long id);
bool CreateForClient(Employer command);
List<EmployerViewModel> SearchForClient(EmployerSearchModel searchModel);
List<EmployerViewModel> 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<EmployerViewModel> GetEmployersHasWorkshop();
Task<List<EmployerSelectListViewModel>> GetSelectList(string search);
#endregion
#region NewByHeydari
OperationResult DeleteEmployer(long id);
List<EmployerViewModel> GetEmployerWithFNameOrLName(string searchText);
List<EmployerViewModel> GetEmployerWithIdNumberOrRegisterId(string searchText);
List<EmployerViewModel> GetEmployerWithNationalcodeOrNationalId(string searchText);
OperationResult DeActiveAll(long id);
OperationResult ActiveAll(long id);
List<EmployerViewModel> GetAllEmployers();
#endregion
#region Insurance
(string employerName, bool isLegal) InsuranceEmployerByWorkshopId(long workshopId);
#endregion
}