public ActionResult AlterUserInfo(string usr, string nick, string gen, int age, string subject) { UserDataAccess uda = new UserDataAccess(); bool alterresult = uda.AlterUserInfoByID(usr, nick, gen, age, subject); if (alterresult) { return(Json("success")); } else { return(Json("error")); } }