private static void DeleteCustomer() { ShowCustomerList(); int id = ConvertHelper.CheckConsoleInput <int>("请输入要删除的客户编号:"); if (CustomerMgr.Delete(id)) { Console.WriteLine("删除成功!"); } else { Console.WriteLine("无法删除,请查看日志。。。"); } }
public void Delete([FromBody] Customer customer) { _customerMgr.Delete(customer); }