public ActionResult DeleteConfirmed(int id)
 {
     Exchnge exchnge = db.Exchnges.Find(id);
     db.Exchnges.Remove(exchnge);
     db.SaveChanges();
     return RedirectToAction("Index");
 }
 public ActionResult Edit([Bind(Include = "eId,ename")] Exchnge exchnge)
 {
     if (ModelState.IsValid)
     {
         db.Entry(exchnge).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(exchnge);
 }
        public ActionResult Create([Bind(Include = "eId,ename")] Exchnge exchnge)
        {
            if (ModelState.IsValid)
            {
                db.Exchnges.Add(exchnge);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(exchnge);
        }
 // GET: Exchnges/Delete/5
 public ActionResult Delete(int? id)
 {
     if (id == null)
     {
         return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
     }
     Exchnge exchnge = db.Exchnges.Find(id);
     if (exchnge == null)
     {
         return HttpNotFound();
     }
     return View(exchnge);
 }