public async Task <List <DTO.ProductWithDefect> > AllAsyncByShopAndDefectIdDTO(int id, int?shopId)
 {
     return((await Uow.ProductsWithDefect.AllAsyncByShopAndDefectIdDTO(id, shopId)).Select(e => ProductWithDefectMapper.MapFromDAL(e)).ToList());
 }
 public async Task <List <ProductIdName> > AllAsyncByDefectIdAndShopId(int defectId, int?shopId)
 {
     return((await Uow.ProductsWithDefect.AllAsyncByDefectIdAndShopId(defectId, shopId))
            .Select(e => ProductWithDefectMapper.MapFromDAL(e)).ToList());
 }
 public override async Task <ProductWithDefect> FindAsync(params object[] id)
 {
     return(ProductWithDefectMapper.MapFromDAL(await Uow.ProductsWithDefect.FindAsync(id)));
 }
 public async Task <DTO.ProductWithDefect> GetAsyncByShopAndIdDTO(int id, int?shopId)
 {
     return(ProductWithDefectMapper.MapFromDAL(await Uow.ProductsWithDefect.GetAsyncByShopAndIdDTO(id, shopId)));
 }
        /*public override async Task<IEnumerable<ProductWithDefect>> AllAsync()
         * {
         *  return await UOW.ProductsWithDefect.AllAsync();
         * }
         *
         * public override async Task<ProductWithDefect> FindAsync(params object[] id)
         * {
         *  return await UOW.ProductsWithDefect.FindAsync(id);
         * }
         *
         * public async Task<IEnumerable<ProductWithDefect>> AllAsyncByShop(int? shopId)
         * {
         *  return await UOW.ProductsWithDefect.AllAsyncByShop(shopId);
         * }
         *
         * public async Task<IEnumerable<ProductWithDefectDTO>> AllAsyncByShopDTO(int? shopId)
         * {
         *  return await UOW.ProductsWithDefect.AllAsyncByShopDTO(shopId);
         * }
         *
         * public async Task<ProductWithDefectDTO> GetAsyncByShopAndIdDTO(int id, int? shopId)
         * {
         *  return await UOW.ProductsWithDefect.GetAsyncByShopAndIdDTO(id, shopId);
         * }*/

        public override async Task <List <ProductWithDefect> > AllAsync()
        {
            return((await Uow.ProductsWithDefect.AllAsync()).Select(e => ProductWithDefectMapper.MapFromDAL(e)).ToList());
        }