public ActionResult SayfaGetir(tbl_SosyalMedya p) { var hesap = repo.Find(x => x.Id == p.Id); hesap.Durum = true; hesap.Ad = p.Ad; hesap.Link = p.Link; hesap.ikon = p.ikon; repo.TUpdate(hesap); return(RedirectToAction("Index")); }
public ActionResult Ekle(tbl_SosyalMedya p) { repo.TAdd(p); return(RedirectToAction("Index")); }