public JsonResult GetData() { if (Session["_user"] != null) { var scClient = new AuthServiceClient(); user v = scClient.GetData((int)Session["_user"]); Json(v); return Json(v, JsonRequestBehavior.AllowGet); } return null; }