public AddViewModel( IOptionsSnapshot <AppSettings> appSettings, ExampleRecordService exampleRecordService) : base(appSettings) { PageTitle = "Add Record"; _exampleRecordService = exampleRecordService; }
public ExampleViewModel( IOptionsSnapshot <AppSettings> appSettings, ExampleRecordService exampleRecordService) : base(appSettings) { PageTitle = "Example"; Data = new GridViewDataSet <DashboardDTO> { RowEditOptions = { PrimaryKeyPropertyName = nameof(IIdentifiable.Id) }, PagingOptions = { PageSize = _appSettings.PageSize }, SortingOptions = { SortExpression = nameof(DashboardDTO.DateTimeValue), SortDescending = true } }; _exampleRecordService = exampleRecordService; }