public ActionResult List(int id, string slug) { var contents = new ContentBO().Where(c => c.BId == id); var title = new BrandsBO().FirstOrDefault(c => c.BrandsId == id); ViewBag.Brand = title.Title; ViewBag.FileId = title.FileId; ViewBag.Des = $"نمایندگی تعمیرات {title.Title},نمایندگی تعمیر لوازم خانگی {title.Title},تعمیر لوازم خانگی {title.Title},لوازم خانگی {title.Title}"; return(View(contents)); }
public ActionResult Category(int?id, string slug) { DataStructure.Brands brand = new BrandsBO().Get(id.Value); return(View(brand)); }
public ActionResult Delete(int id) { var brand = new BrandsBO().Get(id); return(View(brand)); }
// GET: Admin/AdminBrands public ActionResult Index() { var list = new BrandsBO().GetAll(); return(View(list)); }
public ActionResult GenerateMenu() { List <Brands> list = new BrandsBO().GetAll(); return(PartialView("PVMenu", list)); }