public ActionResult Edit([Bind(Include = "Id,Title")] Job job)
 {
     if (ModelState.IsValid)
     {
         JobDb.UpdateJob(db, job);
         return(RedirectToAction("Index"));
     }
     return(View(job));
 }
        // GET: Jobs/Delete/5
        public ActionResult Delete(int?id)
        {
            if (!id.HasValue)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Job job = JobDb.GetJob(db, id.Value);

            if (job == null)
            {
                return(HttpNotFound());
            }
            return(View(job));
        }
 // GET: Jobs
 public ActionResult Index()
 {
     return(View(JobDb.GetAllJobs(db)));
 }
 public ActionResult DeleteConfirmed(int id)
 {
     JobDb.DeleteJob(db, id);
     return(RedirectToAction("Index"));
 }