示例#1
0
        public IActionResult SingleAd(int id)
        {
            CategoryModel model = new CategoryModel();

            model.Categories = _categories.GetAll();
            model.Ad         = _ads.Get(id);
            //model.Category = _categories.Get(id);

            return(View(model));
        }