public async Task <List <GetAbpFilesOutput> > GetListAsync(GetAbpFilesInput input)
        {
            var query = from a in _abpFileRepository.GetAll()
                        join b in _abpFileRelationRepository.GetAll() on a.Id equals b.FileId
                        where b.BusinessId == input.BusinessId && b.BusinessType == input.BusinessType &&
                        !b.IsDeleted
                        orderby b.CreationTime
                        orderby a.FileName
                        select new { File = a, Sort = b.Sort };
            var ret  = new List <GetAbpFilesOutput>();
            var data = await query.ToListAsync();

            foreach (var item in data)
            {
                var entity = new GetAbpFilesOutput()
                {
                    FileName = item.File.FileName,
                    FileSize = item.File.FileSize,
                    Id       = item.File.Id,
                    Sort     = item.Sort
                };
                ret.Add(entity);
            }
            return(ret);
        }
        public GetAbpFilesOutput Get(GetAbpFilesInput input)
        {
            var list = GetList(input);

            return(list.FirstOrDefault());
        }
        public async Task <GetAbpFilesOutput> GetAsync(GetAbpFilesInput input)
        {
            var list = await GetListAsync(input);

            return(list.FirstOrDefault());
        }