public IActionResult DeleteQuery(int queryNumber, int userId) { var username = User.Identity.Name.ToString(); var user = UserOptions.GetUser(username); var query = QueryOptions.Load(user, queryNumber); UserOptions.DeleteQuery(user, queryNumber); user = UserOptions.GetUser(username); return(View("Index", user)); }