public MediatorResponse <SavedSearchViewModel> DeleteSavedSearch(Guid candidateId, Guid savedSearchId) { var viewModel = _candidateServiceProvider.DeleteSavedSearch(candidateId, savedSearchId); if (viewModel.HasError()) { return(GetMediatorResponse(AccountMediatorCodes.DeleteSavedSearch.HasError, viewModel, AccountPageMessages.DeleteSavedSearchFailed, UserMessageLevel.Error)); } return(GetMediatorResponse(AccountMediatorCodes.DeleteSavedSearch.Ok, viewModel)); }