Пример #1
0
        public ExecuteResult <TagInfoResponse> Get(TagGetRequest request)
        {
            if (request == null)
            {
                return(new ExecuteResult <TagInfoResponse>(null)
                {
                    StatusCode = StatusCode.ClientError, Message = "参数错误"
                });
            }

            var entity = this._tagRepository.GetItem(request.TagId);

            return(new ExecuteResult <TagInfoResponse>(MappingManager.TagInfoResponseMapping(entity)));
        }
Пример #2
0
 public RestfulResult Detail(TagGetRequest request)
 {
     return(new RestfulResult {
         Data = this._tagDataService.Get(request)
     });
 }