예제 #1
0
파일: DataImporter.cs 프로젝트: jibrel/leaf
        public async Task <ImportMetadata> UpdateImportMetadata(ImportMetadataDTO dto)
        {
            var import = dto.ToImportMetadata();

            log.LogInformation("Updating import metadata. ImportMetadata:{Metadata}", import);

            var updated = await importService.UpdateImportMetadataAsync(import);

            log.LogInformation("Completed import metadata update. ImportMetadata:{Metadata}", import);

            return(updated);
        }
예제 #2
0
파일: DataImporter.cs 프로젝트: jibrel/leaf
        public async Task <ImportMetadata> CreateImportMetadata(ImportMetadataDTO dto)
        {
            var import = dto.ToImportMetadata();

            log.LogInformation("Creating import metadata. ImportMetadata:{Metadata}", import);

            var added = await importService.CreateImportMetadataAsync(import);

            log.LogInformation("Completed import metadata creation. ImportMetadata:{Metadata}", import);

            return(added);
        }