30 lines
1.0 KiB
C#
30 lines
1.0 KiB
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using _0_Framework.Application;
|
|
using _0_Framework.Domain;
|
|
using CompanyManagment.App.Contracts.PersonalContractingParty;
|
|
using CompanyManagment.App.Contracts.Representative;
|
|
|
|
namespace Company.Domain.RepresentativeAgg;
|
|
|
|
public interface IRepresentativeRepository : IRepository<long, Representative>
|
|
{
|
|
List<RepresentativeViewModel> GetRepresentatives();
|
|
List<PersonalContractingPartyViewModel> GetContractingParties(long id);
|
|
EditRepresentative GetDetails(long id);
|
|
List<RepresentativeViewModel> Search(RepresentativeSearchModel searchModel);
|
|
|
|
#region NewByHeydari
|
|
|
|
List<RepresentativeViewModel> GetRepresentativeListForSearchText(string searchText);
|
|
bool DeleteRepresentative(long id);
|
|
|
|
#endregion
|
|
|
|
#region Api
|
|
Task<ICollection<RepresentativeGetListViewModel>> GetList(RepresentativeGetListSearchModel searchModel);
|
|
bool HasAnyContractingParty(long id);
|
|
Task<List<GetSelectListRepresentativeViewModel>> GetSelectList();
|
|
#endregion
|
|
|
|
} |