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))); }
public RestfulResult Detail(TagGetRequest request) { return(new RestfulResult { Data = this._tagDataService.Get(request) }); }