35 lines
1.2 KiB
C#
35 lines
1.2 KiB
C#
using System.Linq;
|
|
using _0_Framework.InfraStructure;
|
|
using Company.Domain.TemporaryClientRegistrationAgg;
|
|
using CompanyManagment.App.Contracts.PersonalContractingParty;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace CompanyManagment.EFCore.Repository;
|
|
|
|
public class ContractingPartyTempRepository : RepositoryBase<long, ContractingPartyTemp>, IContractingPartyTempRepository
|
|
{
|
|
private readonly CompanyContext _context;
|
|
public ContractingPartyTempRepository(CompanyContext context) : base(context)
|
|
{
|
|
_context = context;
|
|
}
|
|
|
|
//(long id, bool IsAuthenticated) CheckExistOrAuthenticated(string nationalCode)
|
|
//{
|
|
// //return _context.PersonalContractingParties.Select(x=>new PersonalContractingPartyViewModel
|
|
// //{
|
|
// // id = x.id,
|
|
// // IsAuthenticated = x.IsAuthenticated,
|
|
// // Nationalcode = x.Nationalcode,
|
|
// // IdNumber = x.IdNumber,
|
|
|
|
|
|
// //}).FirstOrDefault(x => x.Nationalcode == nationalcode);
|
|
|
|
// return new();
|
|
//}
|
|
public (long id, bool IsAuthenticated) CheckExistOrAuthenticated(string nationalCode)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
} |