public async Task <IActionResult> DeleteFilter(string id)
        {
            if (string.IsNullOrWhiteSpace(id))
            {
                return(BuildMissingParameter("id"));
            }

            var filter = await _filterRepository.Get(id);

            if (filter == null)
            {
                return(new StatusCodeResult((int)HttpStatusCode.NotFound));
            }

            await _filterRepository.Delete(id);

            return(new NoContentResult());
        }
 public async Task Delete(string id)
 {
     await _filterRepository.Delete(id);
 }
 public void DeleteFilter(int filterId)
 {
     _filterRepository.Delete(f => f.FilterID == filterId);
 }
Example #4
0
 public void Delete(Guid id)
 {
     _filterRepository.Delete(id);
 }
Example #5
0
 public void Delete(Filter filter)
 {
     filtersRepository.Delete(filter);
 }