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