// GET: WorkProcesses/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } WorkProcess workProcess = _workProcessService.Find(id); if (workProcess == null) { return(HttpNotFound()); } return(View(workProcess)); }
public JsonResult Progress(WorkProcessType type) { var jobs = workProcessService.Find(type).Where(p => p.IsRunning).ToList(); return(JsonSuccess(jobs)); }