示例#1
0
        public ExtensionEntity GetByName(string key)
        {
            var extension = extensionRepository.GetByName(key);

            return(extension == null ? null : new ExtensionEntity()
            {
                Id = extension.Id,
                Name = extension.Name
            });
        }