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)); }
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)); }