public static Project.ProjectDetail ToProjectDetail(this UpdateProjectCommand command)
 => new Project.ProjectDetail(
     ProjectName.From(command.Name),
     Money.From(command.Budget),
     Email.From(command.Owner),
     ProjectStatus.From(command.Status),
     ServiceOrderNumber.From(command.OrderNumber)
     );
예제 #2
0
 public static Project ToProject(this ProjectState state)
 => Project.From(
     EntityId.From(state.Id),
     ProjectName.From(state.Name),
     ProjectCode.From(state.Code),
     DateAndTime.From(state.StartDate),
     Money.From(state.Budget),
     EntityId.From(state.ClientId),
     Email.From(state.Owner),
     ProjectStatus.From(state.Status),
     ServiceOrderNumber.From(state.OrderNumber),
     Version.From(BitConverter.ToInt32(state.RowVersion)));