Beispiel #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());
        }
Beispiel #2
0
 public ActionResult AddImage(ImageModel imageModel)
 {
     DBProcessor.Create <ImageModel>(imageModel, "Images");
     return(View());
 }
Beispiel #3
0
 public ActionResult CreateUser(UserModel userModel)
 {
     LoadStaticStatusData();
     DBProcessor.Create <UserModel>(userModel, "Users");
     return(View());
 }
Beispiel #4
0
 public ActionResult CreateEmployee(EmployeeModel employeeModel)
 {
     LoadStaticStatusData();
     DBProcessor.Create <EmployeeModel>(employeeModel, "Employees");
     return(View());
 }
Beispiel #5
0
 public ActionResult CreatePart(PartModel partModel)
 {
     LoadStaticStatusData();
     DBProcessor.Create <PartModel>(partModel, "ComputerParts");
     return(View());
 }