public ExecuteResult <SpecialTopicInfoResponse> GetInfo(GetSpecialTopicInfoRequest request) { var data = _specialTopicRepository.GetItem(request.TopicId); var response = MappingManager.SpecialTopicInfoResponseMapping(data); var result = new ExecuteResult <SpecialTopicInfoResponse>(response); return(result); }
/// <summary> /// 根据模型标识获取模型实例 /// </summary> /// <param name="modelId"> /// 模型标识 /// </param> /// <returns> /// 模型实例 /// </returns> protected override object GetModelInstance(string modelId) { return(_specialTopicRepository.GetItem(Int32.Parse(modelId))); }