public Task Handle(TenantTaskChangeTypeEvent message) { return(Update(message.SourceId, Builders <DayAssign> .Update.Set(f => f.TenantType, message.Type))); }
private void Apply(TenantTaskChangeTypeEvent e) { Type = e.Type; }