예제 #1
0
 public ActionResult Create(Job job)
 {
     try
     {
         if (!ModelState.IsValid) return View(job);
         new JobService().Add(job);
         return RedirectToAction("Index");
     }
     catch
     {
         return View(job);
     }
 }
예제 #2
0
 partial void DeleteJob(Job instance);
예제 #3
0
 partial void UpdateJob(Job instance);
예제 #4
0
 partial void InsertJob(Job instance);
예제 #5
0
        public ActionResult Edit(int id, Job job)
        {
            try
            {
                new JobService().Update(id, job);
                // TODO: Add update logic here
 
                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }