public JobsModule(IJobList jobList)
            : base("/jobs")
        {
            _jobList = jobList;

            Get["/"] = _ => _jobList.ListJobs().Result;

            Get["/{id}"] = parameters =>
                        _jobList.GetJob(parameters.id).Result;

            Delete["/{id}"] = parameters =>
                    {
                        _jobList.DeleteJob(parameters.id);
                        return 200;
                    };

            Post["/add"] = _ =>
                    {
                        var job = this.Bind<Job>("Id");
                        var jobId = _jobList.AddJob(job).Result;
                        return _jobList.GetJob(jobId).Result;
                    };
        }