예제 #1
0
        //[CheckSession(item = "MAR810")]
        public ActionResult ResolucionCustomizada(ResolucionCustomizada tramite)
        {
            if (IsAuth)
            {
                var solicitud = _expedienteManager.GetExpedienteDeMarcasPorId(tramite.ExpedienteId);
                tramite.DOCUMENT = JObject.Parse(tramite.JSONDOC);

                tramite.UsuarioId      = sessionToken.UsuarioId;
                tramite.EstatusId      = (int)tramite.EstatusId;
                tramite.EstatusFinalId = (int)tramite.EstatusId;
                tramite.UpdatesEstatus = tramite.UpdatesEstatus;
                tramite.Observaciones  = "Cambio de Estatus";

                ViewBag.Solicitud = solicitud;
                ViewBag.Tramite   = tramite;

                var htmlString = RenderRazorViewToString("ResolucionCustomizada", null);
                tramite.HTMLDOC = htmlString;

                var cronologiaResult = _expedienteManager.SaveEventoCronologicoDeMarcas(tramite);

                return(Content(htmlString, "text/html"));
            }

            throw new HttpException(401, "");//Not Authorized
        }
예제 #2
0
        // GET: /Test/1 >userid=1
        public JsonNetResult ExpedienteId(int id)
        {
            if (IsAuth)
            {
                var solicitud = _expedienteManager.GetExpedienteDeMarcasPorId(id);

                result.Result = new
                {
                    documento = solicitud
                };
            }

            return(new JsonNetResult()
            {
                Data = result
            });
        }