public IActionResult Delete(int id, bool isRestore = false) { if (isRestore) { _handler.Restore(id); } else { _handler.Delete(id); } return(NoContent()); }