public async Task <SearchResponse> SaveAsync(Search search) { try { await _searchRepository.AddAsync(search); await _unitOfWork.CompleteAsync(); return(new SearchResponse(search)); } catch (Exception ex) { return(new SearchResponse($"An error ocurred while saving the search: {ex.Message}")); } }