public IActionResult DeleteSearchTerm(int searchTermId) { if (searchTermId <= 0 || _searchTermService.Count(x => x.Id == searchTermId) == 0) { return(NotFound()); } _searchTermService.Delete(x => x.Id == searchTermId); return(R.Success.Result); }