public ActionResult Edit([Bind(Include = "Id,S_No,Item,Roll_No,Colour,Gsm,Width,Output,NetWt,Remarks")] PackingList packingList) { if (ModelState.IsValid) { db.Entry(packingList).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(packingList)); }
public ActionResult Edit([Bind(Include = "deliveryId,partyName,productionId,deliveryStatus")] Delivery delivery) { if (ModelState.IsValid) { db.Entry(delivery).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.productionId = new SelectList(db.ProductionCards, "productionId", "Rsize", delivery.productionId); return(View(delivery)); }
public ActionResult Edit([Bind(Include = "Created_By,Rsize,Gsm,Colour,NetWt,Type,BagSize,RollStatus,Date,Remarks,PartyName,PLNo,DCNO,InvoiceNo")] JobWork jobWork) { try { //db.JobWorks.Attach(jobWork); db.Entry(jobWork).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } catch (Exception e) { return(View()); } }
public ActionResult Edit(ProductionCard production, int id) { try { // TODO: Add update logic here if (ModelState.IsValid) { db.Entry(production).State = System.Data.Entity.EntityState.Modified; //db.ProductionCards.Add(productionCard); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(production)); } catch (Exception ex) { return(View()); } }