24 lines
452 B
C#
24 lines
452 B
C#
using Oqtane.Models;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Oqtane.Services
|
|
{
|
|
public interface IJobService
|
|
{
|
|
Task<List<Job>> GetJobsAsync();
|
|
|
|
Task<Job> GetJobAsync(int jobId);
|
|
|
|
Task<Job> AddJobAsync(Job job);
|
|
|
|
Task<Job> UpdateJobAsync(Job job);
|
|
|
|
Task DeleteJobAsync(int jobId);
|
|
|
|
Task StartJobAsync(int jobId);
|
|
|
|
Task StopJobAsync(int jobId);
|
|
}
|
|
}
|