public StatusDto Run(string jobId) { try { _reqh.Run(jobId); return(StatusDto.Success); } catch (Exception ex) { return(StatusDto.Failure($"Failed to run job with id '{jobId}'! Reason: {ex}")); } }
public StatusDto RunAllDue() { try { _reqh.RunAllDue(); return(StatusDto.Success); } catch (Exception ex) { return(StatusDto.Failure($"Failed to run due jobs! Reason: {ex}")); } }