metod Extend

This commit is contained in:
SamSys
2025-05-25 18:29:18 +03:30
parent 9311d68a91
commit 03e4f7e8c1
4 changed files with 7 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ public interface ICheckoutRepository : IRepository<long, Checkout>
Task CreateCkeckout(Checkout command);
Task<CreateCheckout> GetContractResultToCreateCheckout(long workshopId, string year, string month,
string contractStart, string contractEnd, long employeeId);
string contractStart, string contractEnd);
//void CreateCkeckout(Checkout command);

View File

@@ -24,7 +24,7 @@ public interface ICheckoutApplication
/// <param name="employeeId"></param>
/// <returns></returns>
Task<CreateCheckout> GetContractResultToCreateCheckout(long workshopId, string year, string month,
string contractStart, string contractEnd, long employeeId);
string contractStart, string contractEnd);
Task<List<CheckoutViewModel>> Search(CheckoutSearchModel searchModel);
List<CheckoutViewModel> SimpleSearch(CheckoutSearchModel searchModel);
List<CheckoutViewModel> PrintAll(List<long> id);

View File

@@ -240,10 +240,10 @@ public class CheckoutApplication : ICheckoutApplication
}
public async Task<CreateCheckout> GetContractResultToCreateCheckout(long workshopId, string year, string month,
string contractStart, string contractEnd, long employeeId)
string contractStart, string contractEnd)
{
return await _checkoutRepository.GetContractResultToCreateCheckout(workshopId, year, month, contractStart,
contractEnd, employeeId);
contractEnd);
}
public async Task<List<CheckoutViewModel>> Search(CheckoutSearchModel searchModel)

View File

@@ -125,8 +125,10 @@ public class CheckoutRepository : RepositoryBase<long, Checkout>, ICheckoutRepos
public Task<CreateCheckout> GetContractResultToCreateCheckout(long workshopId, string year, string month, string contractStart,
string contractEnd, long employeeId)
string contractEnd)
{
var contracts = _context.Contracts.Where(x => x.WorkshopIds == workshopId);
throw new NotImplementedException();
}