public async Task UpdateAsync(IMerchantGroup src)
        {
            try
            {
                await _merchantGroupRepository.UpdateAsync(src);
            }
            catch (KeyNotFoundException ex)
            {
                _log.Error(ex, context: src.ToDetails());

                throw new MerchantGroupNotFoundException(src.Id);
            }
        }
        public Task <IMerchantGroup> CreateAsync(IMerchantGroup src)
        {
            try
            {
                return(_merchantGroupRepository.CreateAsync(src));
            }
            catch (DuplicateKeyException ex)
            {
                _log.Error(ex, context: src.ToDetails());

                throw new MerchantGroupAlreadyExistsException(src.DisplayName);
            }
        }