public async Task <DefectWithProductCount> FindProductsWithDefectByShopAsync(int id, int?shopId) { return(DefectMapper.MapFromDAL(await Uow.Defects.FindProductsWithDefectByShopAsync(id, shopId))); }
public async Task <List <DefectWithProductCount> > GetAllWithProductsWithDefectByShopAsync(int?shopId, string search, int?pageIndex, int?pageSize) { return((await Uow.Defects.GetAllWithProductsWithDefectByShopAsync(shopId, search, pageIndex, pageSize)).Select(e => DefectMapper.MapFromDAL(e)).ToList()); }
public override async Task <List <Defect> > AllAsync() { return((await Uow.Defects.AllAsync()).Select(e => DefectMapper.MapFromDAL(e)).ToList()); }
public override async Task <Defect> FindAsync(params object[] id) { return(DefectMapper.MapFromDAL(await Uow.Defects.FindAsync(id))); }
public async Task <List <Defect> > AllAsync(string order, string searchFor, int?pageIndex, int?pageSize) { return((await Uow.Defects.AllAsync(order, searchFor, pageIndex, pageSize)).Select(e => DefectMapper.MapFromDAL(e)).ToList()); }