예제 #1
0
        public async Task <IActionResult> GetProductsByCategoryAsync(Guid categoryId)
        {
            var(IsSuccessed, ErrorMsg, Data) = await _productBLL.GetProductsBByCategoryIdAsync(categoryId);

            var category = await _categoryBLL.GetCategoryByIdAsync(categoryId);

            ViewBag.Products = Data;

            ViewBag.Category = category;

            return(View("Product"));
        }