public ActionResult Edit([Bind(Include = "Uid,FirstName,LastName,PanNumber,MobileNumber,Email,Password,BankName,AccountNumber,IFSC")] Registration registration) { if (ModelState.IsValid) { db.Entry(registration).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(registration)); }
public ActionResult Edit([Bind(Include = "Tid,Uid,Year,Status,TotalIncome,TotalTax")] TaxInformation taxInformation) { if (ModelState.IsValid) { db.Entry(taxInformation).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Uid = new SelectList(db.Registrations, "Uid", "FirstName", taxInformation.Uid); return(View(taxInformation)); }
public ActionResult Edit([Bind(Include = "Gid,MRP,Uid,GST,Bill,Flag")] GSTINformation gSTINformation) { if (ModelState.IsValid) { db.Entry(gSTINformation).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Uid = new SelectList(db.Registrations, "Uid", "FirstName", gSTINformation.Uid); return(View(gSTINformation)); }
public ActionResult Edit([Bind(Include = "Gnid,Uid,GSTNumber1")] GSTNumber gSTNumber) { if (ModelState.IsValid) { db.Entry(gSTNumber).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Uid = new SelectList(db.Registrations, "Uid", "FirstName", gSTNumber.Uid); return(View(gSTNumber)); }