Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public ActionResult Category(int?id, string slug)
 {
     DataStructure.Brands brand = new BrandsBO().Get(id.Value);
     return(View(brand));
 }
Ejemplo n.º 3
0
        public ActionResult Delete(int id)
        {
            var brand = new BrandsBO().Get(id);

            return(View(brand));
        }
Ejemplo n.º 4
0
        // GET: Admin/AdminBrands
        public ActionResult Index()
        {
            var list = new BrandsBO().GetAll();

            return(View(list));
        }
Ejemplo n.º 5
0
        public ActionResult GenerateMenu()
        {
            List <Brands> list = new BrandsBO().GetAll();

            return(PartialView("PVMenu", list));
        }