public ActionResult Index() { if (!exampleManager.CanAddExampleServices()) { throw new HttpException(401, String.Empty); } ViewData["canAdd"] = CheckCanAdd(); ViewData["canEdit"] = CheckCanEdit(); ViewData["canDelete"] = CheckCanDelete(); return(View()); }
public ActionResult Loader() { ViewData["ShowExamples"] = manager.CanAddExampleServices(); return(PartialView()); }