public IActionResult Create(int userID) { var username = User.Identity.Name.ToString(); var user = UserOptions.GetUser(username); //var queryID = query.Number; //return RedirectToAction("ManageQuery","Query", queryID); UserOptions.AddQuery(user); var queryid = user.Queries.Max(x => x.Number); var query = QueryOptions.Load(user, queryid); return(RedirectToAction("LoadQuery", "Query", query)); }