public async Task Handle(DayAssignMembersGroupAssigned message)
 {
     await Update(message.SourceId,
                  Builders <DayAssign> .Update.Set(f => f.GroupId, message.GroupId),
                  Builders <DayAssign> .Update.Set(f => f.UserIdList, message.UserIdList),
                  Builders <DayAssign> .Update.Set(f => f.TeamLeadId, message.TeamLeadId),
                  Builders <DayAssign> .Update.Set(f => f.IsAssignedToAllUsers, message.IsAssignedToAllUsers)
                  );
 }
 private void Apply(DayAssignMembersGroupAssigned e)
 {
     UserIdList           = UserIdList ?? new List <Guid>();
     GroupId              = e.GroupId;
     TeamLeadId           = e.TeamLeadId;
     IsAssignedToAllUsers = e.IsAssignedToAllUsers;
     UserIdList.AddRange(e.UserIdList);
     UserIdList = UserIdList.Distinct().ToList();
 }