public async Task <OperationResult> AddProductGroupAsync(ProductGroupEntity productGroup) { var validationResult = await _validator.ValidateProductGroupAsync(productGroup); if (!validationResult.Succeeded) { return(validationResult); } _repository.AddProductGroup(productGroup); return(validationResult); }