Esempio n. 1
0
        public async Task <IList <Food> > FindAllProductByFarmerAsync(int farmerID)
        {
            //var products = await this._productRepos.FindAllProductByFarmerAsync(farmerID);
            return(await _productRepos.GetAllIncluding(f => f.CreateBy, f => f.Category).Where(f => f.FarmId == farmerID).OrderByDescending(f => f.CreateDate).ToListAsync());

            //return products;
        }