public static EventEntity MakeEventEntity(CreateDepartmentCmd cmd) { return(new EventEntity { UserId = cmd.UserId, Body = new DepartmentCreatedEvt(cmd) }); }
public DepartmentCreatedEvt(CreateDepartmentCmd cmd) { Name = cmd.Name; }