public ActionResult GetAll() { return(Json(new { success = true, data = _queryService.FindAll() })); }
public ActionResult GetAll() { return(Json(new { success = true, data = _queryService.FindAll() }, JsonRequestBehavior.AllowGet)); }
public ActionResult Index() { if (_contextService.CurrentAccount.AccountName != "admin") { return(View("NoPermission")); } var sections = _queryService.FindAll(); return(View(sections.Select(x => x.ToViewModel(null)))); }
public ActionResult Index(string sectionId) { var sections = _queryService.FindAll(); return(PartialView("SectionNavbar", sections.Select(x => x.ToViewModel(sectionId)))); }