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