insertTimestamp=DateTime.UtcNow;try{using(varconnection=newNpgsqlConnection(_connectionString.ConnectionString)){connection.OpenWithRetry();using(varinsertVoteCommand=connection.CreateCommand()){insertVoteCommand.CommandText=@"INSERTINTOvotes(candidate,time_cast)VALUES(@candidate,@time_cast)";varcandidate=insertVoteCommand.CreateParameter();candidate.ParameterName="@candidate";candidate.DbType=DbType.String;candidate.Value=team;insertVoteCommand.Parameters.Add(candidate);vartimeCast=insertVoteCommand.CreateParameter();timeCast.ParameterName="@time_cast";timeCast.DbType=DbType.DateTime;timeCast.Value=insertTimestamp;insertVoteCommand.Parameters.Add(timeCast);awaitinsertVoteCommand.ExecuteNonQueryAsync();}}returnContent($"Votesuccessfullycastfor'{team}'attime{insertTimestamp}!");}catch(Exceptionex){// If something goes wrong, handle the error in this// section. This might involve retrying or adjusting// parameters depending on the situation.returnStatusCode((int)HttpStatusCode.InternalServerError,ex);}