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); } }
public void GetTrackAndTrace() { var rep = new SissyboyRepository(); var item = rep.GetTrackAndTraceById(1); }