示例#1
0
        public IHttpActionResult RecordPagination(Pagination pagination)
        {
            SYS_REPORTCARDService service = new SYS_REPORTCARDService();

            try
            {
                var query         = service.RecordPagination(pagination);
                var packageEntity = query.PackageEntityPaginations(pagination);
                return(Json(packageEntity));
            }
            catch (Exception)
            {
                PackageResultEntity <object> packageResultEntity = new PackageResultEntity <object>()
                {
                    list = null,
                    msg  = "failed"
                };
                return(Json(packageResultEntity));
            }
        }
示例#2
0
        public IHttpActionResult RecordQuery(string key)
        {
            SYS_REPORTCARDService service = new SYS_REPORTCARDService();

            try
            {
                var query         = service.GetEntity(key);
                var packageEntity = query.PackageResult();
                return(Json(packageEntity));
            }
            catch (Exception)
            {
                PackageResultEntity <object> packageResultEntity = new PackageResultEntity <object>()
                {
                    list = null,
                    msg  = "failed"
                };
                return(Json(packageResultEntity));
            }
        }