Example #1
0
        public ExecuteResult<List<TagInfoResponse>> GetRefresh(TagGetRefreshRequest request)
        {
            if (request == null)
            {
                return new ExecuteResult<List<TagInfoResponse>>(null) { StatusCode = StatusCode.ClientError, Message = "参数错误" };
            }

            var entities = this._tagRepository.GetListForRefresh(request.Timestamp);

            return new ExecuteResult<List<TagInfoResponse>>(MappingManager.TagInfoResponseMapping(entities).ToList());
        }
Example #2
0
 public RestfulResult Refresh(TagGetRefreshRequest request)
 {
     return new RestfulResult { Data = this._tagDataService.GetRefresh(request) };
 }