public SalesAccountActivityResource Visit(SalesAccountUpdateNameActivity activity) { return(new SalesAccountUpdateNameActivityResource { ActivityType = activity.GetType().Name, ChangedOn = DateTime.SpecifyKind(activity.ChangedOn, DateTimeKind.Utc).ToString("o"), Name = activity.Name, UpdatedByUri = activity.UpdatedByUri }); }
private void UpdateName(SalesAccountUpdateNameActivity updateActivity) { this.Name = updateActivity.Name; this.Activities.Add(updateActivity); }