示例#1
0
        public static async Task InsertDocTypesAsync()
        {
            await DocTypeTable.InsertDocType(CommandInsertModel.InsertDocType());

            DocTypeContextList.Add(CommandModel.GetDocTypeContext());
            return;
        }
示例#2
0
 public static async Task InsertDocumentAsync(string DateOfDoc, string MembersEdipi, string FilePath)
 {
     string        fileName         = CommandModel.GetDocTypeContext() + "." + MembersEdipi + "." + CommandModel.GetSectionContext() + "." + DateOfDoc + ".pdf";
     Task <string> SaveFile         = Task.Run(() => FileOperation.CopyFile(fileName, "Member Documents" + @"\" + MembersEdipi, FilePath));
     string        FileSaveLocation = await SaveFile;
     Task          InsertDocument   = Task.Run(() => DocumentTable.InsertDocument(CommandInsertModel.InsertDocument(MembersEdipi, DateOfDoc, FileSaveLocation)));
     await         InsertDocument;
 }