//[AuthorizeUser(ActionName = "Utilizatori", Recursive = false)] public JsonResult IndexJson() { string conStr = Session["conStr"].ToString(); //ConfigurationManager.ConnectionStrings["MySQLConnectionString"].ConnectionString; UtilizatorView uv = new UtilizatorView(Convert.ToInt32(Session["CURENT_USER_ID"]), conStr); return(Json(uv, JsonRequestBehavior.AllowGet)); }
//[AuthorizeUser(ActionName = "Utilizatori", Recursive = false)] public ActionResult Index() { string conStr = Session["conStr"].ToString(); //ConfigurationManager.ConnectionStrings["MySQLConnectionString"].ConnectionString; UtilizatorView uv = new UtilizatorView(Convert.ToInt32(Session["CURENT_USER_ID"]), conStr); return(PartialView("Utilizatori", uv)); }