예제 #1
0
 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
     });
 }
예제 #2
0
 private void UpdateName(SalesAccountUpdateNameActivity updateActivity)
 {
     this.Name = updateActivity.Name;
     this.Activities.Add(updateActivity);
 }