public ActionResult SignUpCheck() { LoadIds(); string checkName = ids["checkName"]; switch (checkName) { case "emailExist": { SqlStoredProcedures sqlSP = new SqlStoredProcedures(); return(Content(Convert.ToString(sqlSP.UserEmailExist(ids["email"])))); } case "usernameExist": { SqlStoredProcedures sqlSP = new SqlStoredProcedures(); return(Content(Convert.ToString(sqlSP.UserUsernameExist(ids["username"])))); } default: { return(Content("null")); } } }