Interface IJobService
Service to manage jobs (Job)
public interface IJobService
Methods
AddJobAsync(Job)
Adds a new job
Task<Job> AddJobAsync(Job job)
Parameters
job
Job
Returns
DeleteJobAsync(int)
Delete an existing job
Task DeleteJobAsync(int jobId)
Parameters
jobId
int
Returns
GetJobAsync(int)
Return a specific job
Task<Job> GetJobAsync(int jobId)
Parameters
jobId
int
Returns
GetJobsAsync()
Returns a list of all jobs
Task<List<Job>> GetJobsAsync()
Returns
StartJobAsync(int)
Starts the given job
Task StartJobAsync(int jobId)
Parameters
jobId
int
Returns
StopJobAsync(int)
Stops the given job
Task StopJobAsync(int jobId)
Parameters
jobId
int
Returns
UpdateJobAsync(Job)
Updates an existing job
Task<Job> UpdateJobAsync(Job job)
Parameters
job
Job