public async Task <CreatePriceRangeResponse> Handle( CreatePriceRangeRequest request, CancellationToken cancellationToken) { if (request == null) { _notificationContext.AddNotification("Request", "request nulo"); return(null); } var priceRange = new PriceRange(request.Name); if (priceRange.Invalid) { _notificationContext.AddNotifications(priceRange.ValidationResult); return(null); } await _priceRangeRepository.CreateAsync(priceRange); return((CreatePriceRangeResponse)priceRange); }