Example #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            BAM_Reporting bAM_Reporting = db.BAM_Reporting.Find(id);

            db.BAM_Reporting.Remove(bAM_Reporting);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Example #2
0
 public ActionResult Edit([Bind(Include = "Id,CreatedDate,UpdatedDate,DeletedDate")] BAM_Reporting bAM_Reporting)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bAM_Reporting).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(bAM_Reporting));
 }
Example #3
0
        public ActionResult Create([Bind(Include = "Id,CreatedDate,UpdatedDate,DeletedDate")] BAM_Reporting bAM_Reporting)
        {
            if (ModelState.IsValid)
            {
                db.BAM_Reporting.Add(bAM_Reporting);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(bAM_Reporting));
        }
Example #4
0
        // GET: BAM_Reporting/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            BAM_Reporting bAM_Reporting = db.BAM_Reporting.Find(id);

            if (bAM_Reporting == null)
            {
                return(HttpNotFound());
            }
            return(View(bAM_Reporting));
        }