Files
Backend-Api/CompanyManagment.App.Contracts/Employer/IEmployerApplication.cs
2025-05-25 21:19:31 +03:30

58 lines
2.0 KiB
C#

using System.Collections.Generic;
using System.Threading.Tasks;
using _0_Framework.Application;
using CompanyManagment.App.Contracts.Checkout;
namespace CompanyManagment.App.Contracts.Employer;
public interface IEmployerApplication
{
OperationResult Create(CreateEmployer command);
OperationResult Edit(EditEmployer command);
OperationResult EditEmployerNo(EditEmployer command);
OperationResult CreateLegals(CreateEmployer command);
OperationResult EditLegal(EditEmployer command);
EditEmployer GetDetails(long id);
OperationResult Active(long id);
OperationResult DeActive(long id);
OperationResult Remove(long id);
List<EmployerViewModel> GetEmployers();
List<EmployerViewModel> Search(EmployerSearchModel searchModel);
List<EmprViewModel> GetEmployerByWorkshopId(long workshopId);
List<EmployerViewModel> GetEmployerByContracrtingPartyID(long id);
List<EmprViewModel> GetEmployerByEmployerIds(List<long> employerIds);
OperationResult CreateForClient(CreateEmployer command);
List<EmployerViewModel> SearchForClient(EmployerSearchModel searchModel);
List<EmployerViewModel> GetEmployersForClient(long acountID);
OperationResult CreateLegalsForClient(CreateEmployer command);
OperationResult EditForClient(EditEmployer command);
OperationResult EditLegalForClient(EditEmployer command);
#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 ActiveAll(long id);
List<EmployerViewModel> GetAllEmployers();
#endregion
#region Insurance
(string employerName, bool isLegal) InsuranceEmployerByWorkshopId(long workshopId);
#endregion
}