public ActionResult Index() { IQueryable <Products> ProductList = _ProudctOperation.ListAll(); if (Session["Member"] == null) { return(View("Index", "_Layout", ProductList.ToList())); } return(View("Index", "LayoutMember", ProductList.ToList())); }
public ActionResult Index() { IQueryable <Products> ProductList = _ProudctOperation.ListAll(); if (Session["Member"] == null) { return(View("Index", "_Layout", ProductList.ToList())); } return(View("Index", "LayoutMember", ProductList.ToList())); }