public ActionResult Vincular(int numeroRegistro, string codPlaca, string observacao) { bool acesso = true; N0203REGBusiness N0203REGBusiness = new N0203REGBusiness(); DateTime localDate = DateTime.Now; if (N0203REGBusiness.ValidarPlaca(codPlaca.ToUpper())) { return(this.Json(new { placa = false }, JsonRequestBehavior.AllowGet)); } else { } if (N0203REGBusiness.ValidarOcorrenciaTransportadora(numeroRegistro.ToString())) { return(this.Json(new { transportadora = true }, JsonRequestBehavior.AllowGet)); } bool retorno = N0203REGBusiness.Vincular(numeroRegistro.ToString(), codPlaca, this.CodigoUsuarioLogado, localDate.ToString(), observacao); return(this.Json(new { retorno, acesso }, JsonRequestBehavior.AllowGet)); }