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); }
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); }