예제 #1
0
        public ActionResult CreateOrder(OrderModel orderModel)
        {
            LoadStaticStatusData();
            orderModel.EmployeeId = 0;
            orderModel.OrderId    = DBProcessor.Count <OrderModel>("Orders") + 1;

            DBProcessor.Create <ImageLinkModel>(new ImageLinkModel(), "ImageLinks");


            orderModel.ImageID = DBProcessor.Count <ImageLinkModel>("ImageLinks");
            DBProcessor.Create(orderModel, "Orders", true, new List <string> {
                "OrderStatusLabel"
            });

            return(View());
        }