public JsonResult ApagarAvaliacao(Avaliacao avaliacao) { AvaliacaoBLL deletabll = new AvaliacaoBLL(); bool resposta = deletabll.ApagarAvaliacao(avaliacao); return(Json(resposta, JsonRequestBehavior.AllowGet)); }
public JsonResult consultarAvaliacao(Avaliacao avaliacao) { AvaliacaoBLL consultarbll = new AvaliacaoBLL(); avaliacao = consultarbll.consultaAvaliacao(avaliacao, avaliacao.idUsuario); return(Json(avaliacao, JsonRequestBehavior.AllowGet)); }
public JsonResult AvaliacaoPontosDeslike(Avaliacao avaliacao) { //int pontosAvaliacao = Convert.ToInt16(TopicosSelc); AvaliacaoBLL avaliacaobussiness = new AvaliacaoBLL(); avaliacao = avaliacaobussiness.inserirPontosLikeDeslike(avaliacao); return(Json(avaliacao, JsonRequestBehavior.AllowGet)); }