sample/Models/ErrorViewModel.cs (9 lines of code) (raw):

using System; namespace AspNetCoreSessionState.Models { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }