protected override void OnInitialized()
 {
     SessionSwitchSubject = Enum.GetValues(typeof(SessionSwitchSubject)).Cast <SessionSwitchSubject>().Select(s => s.ToString()).ToList();
     AccountTypes         = Enum.GetValues(typeof(AccountType)).Cast <AccountType>().Select(s => s.ToString()).ToList();
     Filter = new WorkstationSessionFilter();
 }
 private async Task ClearAsync()
 {
     Filter = new WorkstationSessionFilter();
     await FilterChanged.Invoke(Filter);
 }
Example #3
0
        public async Task <ActionResult <IEnumerable <WorkstationSession> > > GetFilteredSessions(WorkstationSessionFilter workstationSessionFilter)
        {
            var count = await _workstationAuditService.GetWorkstationSessionsCountAsync(new DataLoadingOptions <WorkstationSessionFilter>
            {
                Filter = workstationSessionFilter
            });

            return(await _workstationAuditService.GetWorkstationSessionsAsync(new DataLoadingOptions <WorkstationSessionFilter>
            {
                Take = count,
                SortedColumn = nameof(WorkstationSession.StartDate),
                SortDirection = ListSortDirection.Descending,
                Filter = workstationSessionFilter
            }));
        }