public ActionResult DeleteVoucher(int id) { bool success = _voucherSer.Delete(id); if (success) { return(Ok("Delete successful!")); } return(Problem("Delete failed!")); }