public PartialViewResult DenemeYorum(KullaniciYorum p) { p.Durum = false; p.YorumTarih = DateTime.Now; db.KullaniciYorum.Add(p); db.SaveChanges(); TempData["denemeyorum"] = " "; return(PartialView()); }
public ActionResult AddKullaniciYorum(HomepageModel gelenler) { KullaniciYorum sonuc = new KullaniciYorum(); if (gelenler.KullaniciYorumEkle != null) { sonuc = StokKontrolEntitiesProvider.AddKullaniciYorum(gelenler.KullaniciYorumEkle, Convert.ToInt32(Session["UserObjectId"])); } if (sonuc.KullaniciYorumu != null) { return(RedirectToAction("Homepage", "Home")); } else { return(RedirectToAction("Homepage", "Home")); } }