public String Delete(int id) { CustomerOrderRepository cor = new CustomerOrderRepository(ConstantUtil.MyConnectionString); cor.Delete(id); return("You successfully deleted the order with id: " + id); }
public int Delete(int customerOrderID) { var deleteResult = _repo.Delete(customerOrderID); return(deleteResult); }