23-12-2022

This commit is contained in:
Jonathan Jenne
2022-12-23 13:27:30 +01:00
parent e3f271ac33
commit 7e7eee7299
10 changed files with 130 additions and 36 deletions

View File

@@ -56,7 +56,19 @@ namespace ECM.JobRunner.Web.Data
return null;
}
}
}
public async Task RunProfile(ImportProfile profile)
{
try
{
await channel.RunJobAsync(new RunJobRunJobRequest() { JobId = profile.JobId });
}
catch (Exception ex)
{
logger.Error(ex);
}
}
public async Task<bool> CreateProfile(ImportProfile profile) =>
await DoUpdateProfile(profile, UpdateProfileUpdateProfileRequest.UpdateProfileAction.Create);