/// <summary> /// The CreateVersionofExistingFileAndUploadValidAcceptance /// </summary> /// <param name="ExistingboalfList">The ExistingboalfList<see cref="List{Boalf}"/></param> /// <param name="boalfAcceptanceToRemove">The boalfAcceptanceToRemove<see cref="List{Boalf}"/></param> /// <param name="path">The path<see cref="string"/></param> /// <returns>The <see cref="Task"/></returns> private async Task CreateVersionofExistingFileAndUploadValidAcceptance(List <Boalf> ExistingboalfList, IEnumerable <Boalf> boalfAcceptanceToRemove, string path) { await CreateVersionOfExistingFile(ExistingboalfList, path); var boalfList = ExistingboalfList.Except(boalfAcceptanceToRemove).ToList(); if (boalfList.Count > 0) { await UploadAcceptance(boalfList, path); } else { await writer.DeleteBlob(path); } }