public IActionResult GetNewN([FromQuery] string username) { if (username != "") { try { if (UserDatabaseAccess.UserCheck(_context, username)) { return(StatusCode(200, "True - User Does Exist! Did you mean to do a POST to create a new user?")); } } catch { return(StatusCode(400, "Request formatted incorrectly. Submit a Username (string), API Key (int), or both")); } } return(StatusCode(200, "False - User Does Not Exist! Did you mean to do a POST to create a new user?")); }