コード例 #1
0
        public string GetJsonContent(int key, IDictionary <string, string> properties)
        {
            var item = sissyboyRepository.GetTrackAndTraceById(key);

            if (item != null)
            {
                var trackAndTraceDto = new SissyboyTrackAndTraceDto()
                {
                    PoNumber    = item.PoNumber,
                    TrackingUrl = item.TrackingUrl
                };

                return(JsonConvert.SerializeObject(trackAndTraceDto));
            }
            else
            {
                return(null);
            }
        }
コード例 #2
0
        public void GetTrackAndTrace()
        {
            var rep = new SissyboyRepository();

            var item = rep.GetTrackAndTraceById(1);
        }