public PartialViewResult Contact(TblContact p)
 {
     p.Date = DateTime.Parse(DateTime.Now.ToShortDateString());
     db.TblContact.Add(p);
     db.SaveChanges();
     return(PartialView());
 }
示例#2
0
 public PartialViewResult Contact(Contact contact)
 {
     contact.Date = DateTime.Parse(DateTime.Now.ToShortDateString());
     db.Contact.Add(contact);
     db.SaveChanges();
     return(PartialView());
 }
示例#3
0
 public PartialViewResult İletisim(TblIletisim t)
 {
     t.Tarih = DateTime.Parse(DateTime.Now.ToShortDateString());
     db.TblIletisim.Add(t);
     db.SaveChanges();
     return(PartialView());
 }
示例#4
0
 public ActionResult iletisim(IletisimTbl t)
 {
     t.Tarih = DateTime.Parse(DateTime.Now.ToShortDateString());
     db.IletisimTbl.Add(t);
     db.SaveChanges();
     return(PartialView());
 }
 public PartialViewResult Iletisim(iletisim iletisim)
 {
     iletisim.tarih = DateTime.Parse(DateTime.Now.ToShortDateString());
     db.iletisim.Add(iletisim);
     db.SaveChanges();
     return(PartialView());
 }
 public PartialViewResult iletisim(Tbliletisim t)
 {
     t.Tarih = DateTime.Parse(DateTime.Now.ToShortDateString()); //tarihi getirmek için dönüşüm yaptık
     db.Tbliletisim.Add(t);                                      //tbliletişimden gelen bilgileri ekle
     db.SaveChanges();                                           //değişiklikleri kaydet
     return(PartialView());
 }
示例#7
0
        public ActionResult Guncelle(TBLABOUT p)
        {
            var degerler = db.TBLABOUT.Find(p.ID);

            degerler.NAME    = p.NAME;
            degerler.SURNAME = p.SURNAME;
            degerler.PHONE   = p.PHONE;
            degerler.MAIL    = p.MAIL;
            degerler.ABOUT   = p.ABOUT;
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
示例#8
0
        public ActionResult Guncelle(tblAbout p)
        {
            var dgr = db.tblAbout.Find(p.Id);

            dgr.Name    = p.Name;
            dgr.Surname = p.Surname;
            dgr.Adderss = p.Adderss;
            dgr.Phone   = p.Phone;
            dgr.Mail    = p.Mail;
            dgr.About   = p.About;
            db.SaveChanges();
            return(RedirectToAction("Index", "Hakkimda"));
        }
示例#9
0
 public ActionResult YeniDeneyim(tblExperience d)
 {
     db.tblExperience.Add(d);
     db.SaveChanges();
     return(RedirectToAction("Index", "Deneyimlerim"));
 }
示例#10
0
 public ActionResult YeniHobi(TBLINTEREST p)
 {
     db.TBLINTEREST.Add(p);
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
示例#11
0
 public ActionResult YeniYetenek(tblSkills y)
 {
     db.tblSkills.Add(y);
     db.SaveChanges();
     return(RedirectToAction("Index", "Yetenekler"));
 }
 public ActionResult YeniEgitim(tblAducation e)
 {
     db.tblAducation.Add(e);
     db.SaveChanges();
     return(RedirectToAction("Index", "Egitim"));
 }
示例#13
0
        public ActionResult AdminUpdate(admin adm)
        {
            var x = db.admin.FirstOrDefault();

            x.kullaniciadi = adm.kullaniciadi;
            x.sifre        = adm.sifre;
            db.SaveChanges();

            return(RedirectToAction("Index"));
        }
 public ActionResult YeniHobi(tblInterest h)
 {
     db.tblInterest.Add(h);
     db.SaveChanges();
     return(RedirectToAction("Index", "Hobi"));
 }
示例#15
0
 public void TAdd(T p)
 {
     db.Set <T>().Add(p);
     db.SaveChanges();
 }
 public ActionResult YeniDeneyim(TBLEXPERIENCE p)
 {
     db.TBLEXPERIENCE.Add(p);
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
 public void TAdd(T p)
 {
     //parametreden gelen değerleri ekle ve kaydet
     db.Set <T>().Add(p);
     db.SaveChanges();
 }
 public ActionResult YeniSertifika(tblAward s)
 {
     db.tblAward.Add(s);
     db.SaveChanges();
     return(RedirectToAction("Index", "Sertifika"));
 }
示例#19
0
 public void Add(T entity)
 {
     db.Set <T>().Add(entity);
     db.SaveChanges();
 }
 public ActionResult YeniYetenek(TBLSKILLS p)
 {
     db.TBLSKILLS.Add(p);
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
示例#21
0
 public ActionResult YeniEgitim(TBLEDUCATION p)
 {
     db.TBLEDUCATION.Add(p);
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
 public ActionResult YeniKonferans(TBLAWARDS p)
 {
     db.TBLAWARDS.Add(p);
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }