public static EventWriteModel MapToWriteModel(this domain.Event orEvent) { return(new EventWriteModel { Name = orEvent.Name, Starts = orEvent.Starts, Ends = orEvent.Ends, Location = orEvent.Location }); }
public static EventReadModel MapToReadModel(this domain.Event orEvent) { return(new EventReadModel { Id = orEvent.Id, Name = orEvent.Name, Starts = orEvent.Starts, Ends = orEvent.Ends, Location = orEvent.Location }); }