public ActionResult Remove(int id) { var existingItem = _service.GetById(id); if (existingItem == null) { return(NotFound()); } _service.Remove(id); return(Ok()); }