public ActionResult TableBrand() { if (Session["admin"] == null) { Response.Redirect("~/Admin2/Home/Login"); } return(View(br.SelectListBrand())); }
public TransportSidebar() { BrandModel brand = new BrandModel(); CategoryModel cat = new CategoryModel(); _brandList = brand.SelectListBrand(); _categoryList = cat.SelectListCategory(); }