private void UpdateProducts(int productGroupID, List <MasterGroupMappingProduct> listOfProductsToUpdate) { listOfProductsToUpdate.ForEach(masterGroupMappingProduct => { masterGroupMappingRepo.UpdateMasterGroupMappingProduct(masterGroupMappingProduct); }); log.DebugFormat("{1} Products are updated in product group {0}", productGroupID, listOfProductsToUpdate.Count); }