Beispiel #1
0
        public void Save(OrderDTO order)
        {
            using (var context = new CoffeMachineDbContext())
            {
                OrderModel model = order.ToModel();

                context.Orders.Add(model);
                context.SaveChanges();
            }
        }