public ActionResult List(string m, int?id) { result.resultList = pr.List(); if (m != null) { ViewBag.Mesaj = string.Format("{0} nolu kaydın silme işlemi {1}", id, m); } return(View(result.resultList.ProcessResult)); }
public ActionResult List(string m, int?id) { if (Session["UserID"] == null) { return(RedirectToAction("AdminLogin", "AdminLogin")); } else { result.resultList = pr.List(); if (m != null) { ViewBag.Mesaj = string.Format("{0} nolu kaydin silme islemi {1}", id, m); } return(View(result.resultList.ProcessResult)); } }
public ActionResult List(Guid?id) { List <Product> pList = pr.List().ProcessResult.Where(t => t.CategoryId == id).ToList(); return(View(pList)); }
// GET: Admin/Product public ActionResult List() { return(View(pr.List().ProccessResult)); }
public ActionResult ListByCategory(Guid id) { List <Product> catList = pr.List().ProccessResult.Where(t => t.CategoryID == id).ToList(); return(View(catList)); }
public ActionResult List() { result.resultList = pr.List(); return(View(result.resultList.ProcessResult)); }