Exemplo n.º 1
0
        public ActionResult Hapus_balasan(int id, int id_barang)
        {
            dtkomentar dtkomentar = this.dtkomentar.getKomentarById(id);

            this.dtkomentar.delete(dtkomentar);
            return(RedirectToAction("Product", new { id = id_barang }));
        }
Exemplo n.º 2
0
        public ActionResult Balas_komentar(dtkomentar balasan, string filter, int id_barang)
        {
            balasan.id_penyewa = Convert.ToInt32(Session["penyewa"]);
            balasan.creadate   = DateTime.Now;

            if (balasan.isi_komentar != "")
            {
                this.dtkomentar.add(balasan);
            }
            return(RedirectToAction("Product", new { id = id_barang, filter = filter }));
        }