public static async Task <T1> UpdateEntryWithLogsAsync <T1>(this IBoundClient <T1> boundClient, ILogger logger, bool resultRequired = true) where T1 : class, IDynamicsEntity { logger.LogDebug($"Executing update entry {Environment.NewLine} {Environment.StackTrace}"); logger.LogInformation($"Updating type: {typeof(T1)}"); logger.LogInformation($"Executing Dynamics Query: {await boundClient.GetCommandTextAsync()}"); var result = await boundClient.UpdateEntryAsync(resultRequired); logger.LogInformation($"Updated entry with Id: {result.GetId()}"); return(result); }