* Fixed parameters names

This commit is contained in:
2025-08-24 10:36:36 +02:00
parent de9f6e53aa
commit f0b94bea74
3 changed files with 5 additions and 5 deletions

View File

@@ -4,5 +4,5 @@ namespace SytelineSaAppEfDataModel.Services;
public interface IItemCustPriceAllService
{
Task<ItemCustPriceAllDto?> GetItemCustPriceAllAsync(string item, string customerNumber);
Task<ItemCustPriceAllDto?> GetItemCustPriceAllAsync(string itemNumber, string customerNumber);
}

View File

@@ -5,9 +5,9 @@ namespace SytelineSaAppEfDataModel.Services;
public class ItemCustPriceAllService(SytelineSaAppDbContext context, IMapper mapper) : IItemCustPriceAllService
{
public async Task<ItemCustPriceAllDto?> GetItemCustPriceAllAsync(string item, string customerNumber)
public async Task<ItemCustPriceAllDto?> GetItemCustPriceAllAsync(string itemNumber, string customerNumber)
{
return await Task.FromResult(mapper.Map<ItemCustPriceAllDto?>(context.ItemCustPriceAlls
.OrderByDescending(x => x.EffectDate).FirstOrDefault(x => x.Item == item && x.CustNum == customerNumber)));
.OrderByDescending(x => x.EffectDate).FirstOrDefault(x => x.Item == itemNumber && x.CustNum == customerNumber)));
}
}