예제 #1
0
        public JsonResult Get(AssetLogSearchParam param, int pageIndex = 1, int pageSize = 20)
        {
            var list = _service.PageListDto(param, pageIndex, pageSize);

            return(Json(ResultUtil.PageList(list)));

            // var list = service.ListDto(param);
            // return MyJson(ResultUtil.Success<List<AssetLogDto>>(list), JsonRequestBehavior.AllowGet);
        }
예제 #2
0
        public JsonResult GetAssetLogs(int id)
        {
            var logService = new AssetLogService();
            var param      = new AssetLogSearchParam();

            param.AssetId = id;
            var list = logService.ListDto(param);

            return(Json(ResultUtil.Success(list.ToList())));
        }