public override async Task <List <ProductDescription> > AllAsync()
 {
     return(await RepositoryDbSet
            .Include(r => r.Product)
            .ThenInclude(p => p.RouteOfAdministration)
            .Include(r => r.Product)
            .ThenInclude(n => n.ProductName)
            .Include(r => r.Product)
            .ThenInclude(c => c.ProductClassification)
            .Include(r => r.Description)
            .Select(e => ProductDescriptionMapper.MapFromDomain(e)).ToListAsync());
 }
        public async Task <ProductDescription> FindAllPerEntity(int id)
        {
            var productDescription = await RepositoryDbSet
                                     .Include(r => r.Product)
                                     .ThenInclude(p => p.RouteOfAdministration)
                                     .Include(r => r.Product)
                                     .ThenInclude(n => n.ProductName)
                                     .Include(r => r.Product)
                                     .ThenInclude(c => c.ProductClassification)
                                     .Include(r => r.Description)
                                     .FirstOrDefaultAsync(m => id.Equals(m.ProductId));

            //.FirstOrDefaultAsync(m => m.Id == id);

            return(ProductDescriptionMapper.MapFromDomain(productDescription));
        }
 public async Task <ProductDescription> FindAllPerEntity(int id)
 {
     return(ProductDescriptionMapper.MapFromDAL(await Uow.ProductDescriptions.FindAllPerEntity(id)));
 }