26 lines
856 B
C#
26 lines
856 B
C#
|
|
using Core.Interfaces;
|
|||
|
|
using Domain.Entities;
|
|||
|
|
using Models.Interfaces;
|
|||
|
|
|
|||
|
|
namespace Core.Services
|
|||
|
|
{
|
|||
|
|
public class LSMLookUpService : ILSMLookUpDom
|
|||
|
|
{
|
|||
|
|
#region Declaraciones y Constructor
|
|||
|
|
private readonly IPhLSMLookUpRepository _repository;
|
|||
|
|
|
|||
|
|
public LSMLookUpService(IPhLSMLookUpRepository repository)
|
|||
|
|
{
|
|||
|
|
_repository = repository ?? throw new ArgumentNullException(nameof(repository));
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region Métodos de clase
|
|||
|
|
public Task<IEnumerable<ELookUpItem>> ProductDivisionsListAsync(string filter, int limit = 10)
|
|||
|
|
=> _repository.ProductDivisionsAsync(filter, limit);
|
|||
|
|
|
|||
|
|
public Task<IEnumerable<ELookUpItem>> UnitsOfMeasureListAsync(string filter, int limit = 10)
|
|||
|
|
=> _repository.UnitsOfMeasureAsync(filter, limit);
|
|||
|
|
#endregion
|
|||
|
|
}
|
|||
|
|
}
|