public IActionResult Delete(int id) { var result = dataProcessor.DeleteResult(DbContext, id); if (result == ResultOperation.NotFound) { return(NotFound(new { Error = $"Result ID = {id} has not been found" })); } return(new OkResult()); }