private static Task <TResponse> Errors(IEnumerable <ValidationFailure> failures) { var notifiable = new Notifiable(); foreach (var failure in failures) { notifiable.AddError(new NotifiableError(failure.ErrorMessage)); } return(Task.FromResult(notifiable as TResponse)); }