diff --git a/DigitalData.Core.DTO/DTOExtensions.cs b/DigitalData.Core.DTO/DTOExtensions.cs index 157ed95..5d3cb11 100644 --- a/DigitalData.Core.DTO/DTOExtensions.cs +++ b/DigitalData.Core.DTO/DTOExtensions.cs @@ -144,5 +144,9 @@ namespace DigitalData.Core.DTO public static void LogNotice(this ILogger logger, Result result, string start = ": ", string seperator = ". ", string end = ".\n") => logger.LogNotice(notices: result.Notices, start: start, seperator: seperator, end: end); + + public static bool IsRight(this DataResult bResult) => bResult.Data; + + public static bool IsWrong(this DataResult bResult) => !bResult.Data; } } \ No newline at end of file