public ActionResult _OrderRoundPanel_Partial(Order order)
 {
     if (order.OrderId == 0)
     {
         order.OrderId      = OrderDemoDataBase.GetLastOrderId() + 1;
         order.DeliveryDate = (DateTime.UtcNow).Date;
         order.ValidUntil   = (DateTime.UtcNow).Date;
         order.TotalPrice   = 0;
     }
     return(PartialView("_OrderRoundPanel_Partial", order));
 }
        private Order ClearOrderModel(Order order)
        {
            order.OrderId             = OrderDemoDataBase.GetLastOrderId() + 1;
            order.OrderName           = "";
            order.DeliveryDate        = (DateTime.UtcNow).Date;
            order.ValidUntil          = (DateTime.UtcNow).Date;
            order.TotalPrice          = 0;
            order.ProductId           = 0;
            order.ProductName         = "";
            order.ProductPrice        = 0;
            order.MaterialId          = 0;
            order.IncludeProductPrice = false;

            return(order);
        }