public async Task <ActionResult <IEnumerable <NavMessage> > > Search([FromQuery] SearchQueryNavMessage query) { var mapQuery = _mapper.Map <SearchQueryNavMessage, Domain.Entities.SearchQueryNavMessage>(query); var queryResults = await _messageService.Search(mapQuery); return(Ok(queryResults)); }
private async Task <IEnumerable <NavMessage> > GetActiveImportedNavMessages(string businessOrganizationNumber) { var navMessageSearchParameters = new SearchQueryNavMessage { Namespace = Sykmelding_Namespace, IntegrationType = IntegrationType.Import, WorkState = WorkState.ReadyForProcessing, BusinessOrganizationNumber = businessOrganizationNumber, }; var messages = await _repository.Search(navMessageSearchParameters); return(messages); }
public async Task <IEnumerable <NavMessage> > Search(SearchQueryNavMessage searchQuery) { return(await _repository.Search(searchQuery)); }