Esempio n. 1
0
        public ActionResult Ativar(PTV ptv)
        {
            _busPTV.Ativar(ptv);

            return(Json(new
            {
                @EhValido = Validacao.EhValido,
                @Msg = Validacao.Erros,
                @Url = Url.Action("Index", "PTV") + "?Msg=" + Validacao.QueryParam() + "&acaoGerarPdfId=" + ptv.Id.ToString(),
                @Id = ptv.Id
            }, JsonRequestBehavior.AllowGet));
        }