Esempio n. 1
0
 public ActionResult Edit([Bind(Include = "Id,Name,DonationType,Village,City,State,Pincode,MobileNo,AMount")] ReceiptData invoiceData)
 {
     if (ModelState.IsValid)
     {
         db.Entry(invoiceData).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(invoiceData));
 }
Esempio n. 2
0
 public ActionResult Edit([Bind(Include = "ReportTitle,Date,Reporter,ID,Details")] Report report)
 {
     if (ModelState.IsValid)
     {
         db.Entry(report).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(report));
 }