using AutoMapper; using WIDESEA_Core.BaseRepository; using WIDESEA_Core.BaseServices; using WIDESEA_IStockService; using WIDESEA_Model.Models; namespace WIDESEA_StockService { public partial class StockInfoService : ServiceBase>, IStockInfoService { private readonly IMapper _mapper; public IRepository Repository => BaseDal; public StockInfoService(IRepository BaseDal, IMapper mapper) : base(BaseDal) { _mapper = mapper; } public Dt_StockInfo GetStockInfo(string palletCode) { return Db.Queryable().Where(x => x.PalletCode == palletCode).Includes(x => x.Details).First(); } } }