public async Task <ExampleCreateResponse> CreateAsync(ExampleCreateRequest request) => await ExecuteAsync(async() => { var response = new ExampleCreateResponse(); var obj = ExampleDomain.Create(request.Age, request.Name); obj.Validate(obj, new ExampleValidator()); if (!obj.Valid) { _notification.AddNotifications(obj.ValidationResult); return(response); } await _exampleRepository.InsertOrUpdateAsync(obj).ConfigureAwait(false); return(response); });