diff --git a/DigitalData.Core.DTO/DTOExtensions.cs b/DigitalData.Core.DTO/DTOExtensions.cs index 49aee5d..264425e 100644 --- a/DigitalData.Core.DTO/DTOExtensions.cs +++ b/DigitalData.Core.DTO/DTOExtensions.cs @@ -72,13 +72,13 @@ namespace DigitalData.Core.DTO return result.IsSuccess ? Try(result.Data) : Catch(result.Messages, result.Notices); } - public static async Task Then(this Task tResult, Func Try, Func, List, I> Catch) + public static async Task ThenAsync(this Task tResult, Func Try, Func, List, I> Catch) { Result result = await tResult; return result.IsSuccess ? Try() : Catch(result.Messages, result.Notices); } - public static async Task Then(this Task> tResult, Func Try, Func, List, I> Catch) + public static async Task ThenAsync(this Task> tResult, Func Try, Func, List, I> Catch) { DataResult result = await tResult; return result.IsSuccess ? Try(result.Data) : Catch(result.Messages, result.Notices);