Пример #1
0
        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));
        }