public async Task <List <FileData> > GetAllData() { try { UploadRepository uploadRepo = new UploadRepository(); var result = await uploadRepo.GetData(); return(result); } catch (Exception ex) { return(null); } }