public async Task <ActionResult> Search([FromRoute] string param, [FromRoute] string type) { var offers = await _dataRepo.BrowseOffersAsync(param, type); var offers_to_display = _mapper.Map <IEnumerable <OfferDto> >(offers); return(Ok(offers_to_display)); }