// GET: cases public ActionResult Index() { if ((Object)Session["as_role"] == null) { if ((Object)Session["Login"] == null) { return(RedirectToAction("Login", "Users")); } //else //{ // return RedirectToAction("NoRole", "Users"); //} } TagsClass tc = new TagsClass(); ViewBag.Tags = tc.Read(); //ViewBag.Case_tags = case_tagClass.Read(); //case_tagClass.Read().Any(cus => cus.f_case_id == 1); return(View(modelClass.Read())); }
public JsonResult GetTags() { return(Json(modelClass.Read(), JsonRequestBehavior.AllowGet)); }