public ExampleEntity Modify(ExampleEntity entity)
        {
            _logger.LogDebug("Modify");
            if (entity.Id < 1)
            {
                _logger.LogWarning("Invalid ID");
                return(null);
            }

            var actualEntity = Get(entity.Id);

            if (actualEntity == null)
            {
                _logger.LogWarning("Invalid ID");
                return(null);
            }

            var result = _repository.Modify(_mapper.Map <ExampleModel>(entity));

            _logger.LogDebug($"Modify success? {!string.IsNullOrEmpty(result.Name)}");

            return(_mapper.Map <ExampleEntity>(result));
        }