@inject IConfiguration Configuration @{ var enableCsvImports = bool.Parse(Configuration[nameof(UserConfig.EnableCsvImports)]); var hideZero = bool.Parse(Configuration[nameof(UserConfig.HideZero)]); } @model List
@($"# of Tax Records: {Model.Count()}") @($"Total: {Model.Sum(x => x.Cost).ToString("C")}")
@if (enableCsvImports) {
} else { }
@foreach (TaxRecord taxRecord in Model) { }
Date Description Cost Notes
@taxRecord.Date.ToShortDateString() @taxRecord.Description @((hideZero && taxRecord.Cost == default) ? "---" : taxRecord.Cost.ToString("C")) @CarCareTracker.Helper.StaticHelper.TruncateStrings(taxRecord.Notes)