public ActionResult DeleteConfirmed(int id)
        {
            HakkimdaInfo hakkimdaInfo = db.HakkimdaInfoes.Find(id);

            db.HakkimdaInfoes.Remove(hakkimdaInfo);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,HakkimdaBaslik,ProfilResmiAdresi,HakkimdaAciklama,IlkOkul,Lise,Universite")] HakkimdaInfo hakkimdaInfo)
 {
     if (ModelState.IsValid)
     {
         db.Entry(hakkimdaInfo).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(hakkimdaInfo));
 }
        public ActionResult Create([Bind(Include = "Id,HakkimdaBaslik,ProfilResmiAdresi,HakkimdaAciklama,IlkOkul,Lise,Universite")] HakkimdaInfo hakkimdaInfo)
        {
            if (ModelState.IsValid)
            {
                db.HakkimdaInfoes.Add(hakkimdaInfo);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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