public ActionResult Edit([Bind(Include = "id,Fee")] TblStoreFee tblStoreFee) { if (ModelState.IsValid) { db.Entry(tblStoreFee).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tblStoreFee)); }
// GET: setupstorefee/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } TblStoreFee tblStoreFee = db.TblStoreFees.Find(id); if (tblStoreFee == null) { return(HttpNotFound()); } return(View(tblStoreFee)); }