public ActionResult DeleteConfirmed(int id)
        {
            tbl_PortalHaber_Banner_VeriGelmeTipi tbl_PortalHaber_Banner_VeriGelmeTipi = db.tbl_PortalHaber_Banner_VeriGelmeTipi.Find(id);

            db.tbl_PortalHaber_Banner_VeriGelmeTipi.Remove(tbl_PortalHaber_Banner_VeriGelmeTipi);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "BT_Id,Adi")] tbl_PortalHaber_Banner_VeriGelmeTipi tbl_PortalHaber_Banner_VeriGelmeTipi)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_PortalHaber_Banner_VeriGelmeTipi).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tbl_PortalHaber_Banner_VeriGelmeTipi));
 }
        public ActionResult Create([Bind(Include = "BT_Id,Adi")] tbl_PortalHaber_Banner_VeriGelmeTipi tbl_PortalHaber_Banner_VeriGelmeTipi)
        {
            if (ModelState.IsValid)
            {
                db.tbl_PortalHaber_Banner_VeriGelmeTipi.Add(tbl_PortalHaber_Banner_VeriGelmeTipi);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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