コード例 #1
0
 public void Delete()
 {
     List<OrderItemModel> orderItems = OrderItemManager.GetOrderItems();
     OrderItemModel orderItem = orderItems.FirstOrDefault(u => u.Price == 321);
     bool result = OrderItemManager.Delete(orderItem.OrderItemID);
     Assert.IsTrue(result);
 }
コード例 #2
0
 // DELETE: api/OrderItem/5
 public void Delete(Guid id)
 {
     OrderItemManager.Delete(id);
 }