public ActionResult Edit([Bind(Include = "CategoryId,CategoryName,Description")] Categories_174772 categories_174772) { if (ModelState.IsValid) { db.Entry(categories_174772).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(categories_174772)); }
public ActionResult Edit([Bind(Include = "CustomerId,FullName,EmailId,Password,DeliveryAddress")] Customers_174772 customers_174772) { if (ModelState.IsValid) { db.Entry(customers_174772).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(customers_174772)); }
public ActionResult Edit([Bind(Include = "OrderId,ProductId,Quantity,UnitCost")] OrderDetails_174772 orderDetails_174772) { if (ModelState.IsValid) { db.Entry(orderDetails_174772).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.ProductId = new SelectList(db.Products_174772, "ProductId", "ModelNumber", orderDetails_174772.ProductId); return(View(orderDetails_174772)); }
public ActionResult Edit([Bind(Include = "OrderId,CustomerId,OrderDate,ShipDate")] Orders_174772 orders_174772) { if (ModelState.IsValid) { db.Entry(orders_174772).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.CustomerId = new SelectList(db.Customers_174772, "CustomerId", "FullName", orders_174772.CustomerId); return(View(orders_174772)); }
public ActionResult Edit([Bind(Include = "RecordId,CartId,Quantity,ProductId,DateCreated")] ShoppingCart_174772 shoppingCart_174772) { if (ModelState.IsValid) { db.Entry(shoppingCart_174772).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.ProductId = new SelectList(db.Products_174772, "ProductId", "ModelNumber", shoppingCart_174772.ProductId); return(View(shoppingCart_174772)); }
public ActionResult Edit([Bind(Include = "ProductId,CategoryId,ModelNumber,ModelName,UnitCost,Description")] Products_174772 products_174772) { if (ModelState.IsValid) { db.Entry(products_174772).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.CategoryId = new SelectList(db.Categories_174772, "CategoryId", "CategoryName", products_174772.CategoryId); return(View(products_174772)); }