public async Task <IActionResult> AddRecurring(RecurringDTO recurringDTO) { string jobId = await _TaskQueue.AddRecurringJobAsync(recurringDTO); return(Json(new { jobId = jobId })); }
public async Task <string> AddRecurringJobAsync(RecurringDTO RecurringDTO) { return(await _TaskQueue.AddRecurringJobAsync(RecurringDTO)); }