public IActionResult Delete(string id) { var value = _valueService.Get(id); if (value == null) { return(NotFound()); } _valueService.Remove(value.Id); return(NoContent()); }