Is it possible to update an already fetched collection through UpdateMulti?
i have tried the following but seems like it is not working:
public static void UpdateIsNotificationSentStatusOfStaffEmploymentDocuments(StaffEmploymentDocumentCollection docsToExpire, StaffEmploymentDocumentCollection expiredDocs)
{
var toUpdate1 = new StaffEmploymentDocumentEntity { IsNotificationSentXdaysBeforeExpirationDate = true };
docsToExpire.UpdateMulti(toUpdate1, null);
var toUpdate2 = new StaffEmploymentDocumentEntity { IsNotificationSentAfterExpirationDate = true };
expiredDocs.UpdateMulti(toUpdate2, null);
}
If this is the wrong way what would be the best way without looping through each collection item and updating each one individually.
thanks
-shane