public ActionResult DeleteConfirmed(int id) { tblFundAgencyType tblFundAgencyType = db.tblFundAgencyTypes.Find(id); db.tblFundAgencyTypes.Remove(tblFundAgencyType); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "id,FundAgencyType")] tblFundAgencyType tblFundAgencyType) { if (ModelState.IsValid) { db.Entry(tblFundAgencyType).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tblFundAgencyType)); }
public ActionResult Create([Bind(Include = "id,FundAgencyType")] tblFundAgencyType tblFundAgencyType) { if (ModelState.IsValid) { db.tblFundAgencyTypes.Add(tblFundAgencyType); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tblFundAgencyType)); }
// GET: FundAgencyType/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } tblFundAgencyType tblFundAgencyType = db.tblFundAgencyTypes.Find(id); if (tblFundAgencyType == null) { return(HttpNotFound()); } return(View(tblFundAgencyType)); }