private JsonFiles getFileList(long forignKeyId) { var r = new List <ViewDataUploadFilesResult>(); IEnumerable <IFileUploadInfoDTO> list = fileUploadService.GetListFileInfo(forignKeyId); foreach (IFileUploadInfoDTO file in list) { r.Add(uploadResult(file.Id, file.Name, file.Size, file.Type)); } JsonFiles files = new JsonFiles(r); return(files); }