public async Task <bool> Update(MultimediaTypeInput input)
        {
            MultimediaTypeEntity mul = new MultimediaTypeEntity
            {
                Id         = input.Id,
                Name       = input.Name,
                ModuleType = input.ModuleType
            };

            try
            {
                await _iMultimediaTypeRepository.UpdateAsync(mul);
            }
            catch (Exception)
            {
                return(false);
            }
            return(true);
        }
        /// <summary>
        /// 插入
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public async Task <string> Insert(MultimediaTypeInput input)
        {
            MultimediaTypeEntity mul = new MultimediaTypeEntity
            {
                Id         = Guid.NewGuid().ToString(),
                Name       = input.Name,
                ModuleType = input.ModuleType,
                CreateTime = DateTime.Now
            };

            try
            {
                string ret = await _iMultimediaTypeRepository.InsertAndGetIdAsync(mul);

                return(ret);
            }
            catch (Exception)
            {
                return(null);
            }
        }