コード例 #1
0
        public string GetCurrentActivityStatus()
        {
            if (Activity == null || Activity.Count == 0)
            {
                return(null);
            }

            var lastActivity = Activity.OrderByDescending(x => x.Timestamp).FirstOrDefault();

            if (lastActivity == null)
            {
                return(null);
            }

            return(lastActivity.ShortDescription);
        }
コード例 #2
0
        public ShipmentStage?GetCurrentShipmentStage()
        {
            if (Activity == null || Activity.Count == 0)
            {
                return(null);
            }

            var lastActivity = Activity.OrderByDescending(x => x.Timestamp).FirstOrDefault();

            if (lastActivity == null)
            {
                return(null);
            }

            return(lastActivity.Stage);
        }