Exemple #1
0
        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"));
        }
Exemple #2
0
 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));
 }
Exemple #3
0
        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));
        }
Exemple #4
0
        // 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));
        }