public ActionResult AddNewUser(string FullName, string Name, bool IsAdmin) { if (Session["UserID"] != null) { LoginData data = new LoginData(); data.ID = Convert.ToInt32(Session["UserID"]); data.Name = Convert.ToString(Session["UserName"]); data.role.RoleString = Convert.ToString(Session["UserRole"]); data.Load(); data.AddNewUser(FullName, Name, IsAdmin); } return(Json("")); }