示例#1
0
        public JsonResult Index(InstitucionCriteria criteria)
        {
            var resulatdo        = _iInstitucionService.GetList(criteria);
            var institucionVista = (from x in resulatdo.Data
                                    orderby x.RazonSocial
                                    let NumeroAcuerdoRegistro = x.NumeroAcuerdo
                                                                let RepresentanteNombresCompletos = x.RepresentanteNombres + " " + x.RepresentanteApellidos
                                                                                                    select new
            {
                x.Id,
                x.IncritoEnNombre,
                x.InscritoId,
                x.LugarInscripcion,
                NumeroAcuerdoRegistro,
                x.RazonSocial,
                x.RepresentanteApellidos,
                x.RepresentanteId,
                x.RepresentanteNombres,
                RepresentanteNombresCompletos,
                x.RepresentanteIdentificacion,
                x.Ruc
            });
            var resultado = new
            {
                Data = institucionVista,
                resulatdo.TotalRegistros
            };

            return(Json(resultado, JsonRequestBehavior.AllowGet));
        }