public async Task <DataTransferObject <InitialDataDTO> > LoadInitialData() { DataTransferObject <InitialDataDTO> response = new DataTransferObject <InitialDataDTO>(); response.IsSuccess = true; try { response.Data = new InitialDataDTO(); response.Data.Categories = new List <Filter>(); response.Data.Categories = await _filterService.GetAllCategories() ?? new List <Filter>(); response.Data.Filters = new List <Filter>(); response.Data.Filters = await _filterService.GetAllFilters() ?? new List <Filter>(); } catch (Exception ex) { response.IsSuccess = false; } return(response); }