Esempio n. 1
0
        public static async Task <StatusHandler> ProcessSingleAsync(this IProcessable processable, LibraryBook libraryBook)
        {
            if (!processable.Validate(libraryBook))
            {
                return new StatusHandler {
                           "Validation failed"
                }
            }
            ;

            return(await processable.ProcessBookAsync_NoValidation(libraryBook));
        }