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