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); }
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); }