コード例 #1
0
        public ActionResult ColaReportes(ColaReporte reporte)
        {
            ManagerUser manage     = new ManagerUser();
            var         dto_result = new List <ColaReporte>();

            try
            {
                dto_result = manage.ConsultaColaReportes(reporte);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(Json(dto_result));
        }
コード例 #2
0
        public ActionResult InsertaColaReportes(ColaReporte reporte)
        {
            ManagerUser manage        = new ManagerUser();
            var         agenteSession = Session["LoginCredentials"] as List <dto_login>;
            var         dto_result    = reporte;

            reporte.UsuarioCreacion = agenteSession[0].cod_agente;
            Boolean inserta = false;

            try
            {
                inserta = manage.InsertaColaReportes(reporte);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(Json(dto_result));
        }