コード例 #1
0
        public async Task <IEnumerable <Product> > GetProductsAsync(int CategoryId)
        {
            //ValidateCategory(CategoryId);
            string orderBy         = "Id";
            var    orderByToLower  = orderBy.ToLower();
            var    Productentities = await EcomakRepository.GetProductsAsync(CategoryId);

            return(mapper.Map <IEnumerable <Product> >(Productentities));
        }