Example #1
0
 public async Task <DefectWithProductCount> FindProductsWithDefectByShopAsync(int id, int?shopId)
 {
     return(DefectMapper.MapFromDAL(await Uow.Defects.FindProductsWithDefectByShopAsync(id, shopId)));
 }
Example #2
0
 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());
 }
Example #3
0
 public override async Task <List <Defect> > AllAsync()
 {
     return((await Uow.Defects.AllAsync()).Select(e => DefectMapper.MapFromDAL(e)).ToList());
 }
Example #4
0
 public override async Task <Defect> FindAsync(params object[] id)
 {
     return(DefectMapper.MapFromDAL(await Uow.Defects.FindAsync(id)));
 }
Example #5
0
 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());
 }