public void Save(Job job) { if (job.id > 0) _jobDao.Update(job); else _jobDao.Insert(job); }
public ActionResult Addjob(Job job) { JobService.GetInstance().Save(job); return RedirectToAction("jobs"); }
partial void DeleteJob(Job instance);
partial void UpdateJob(Job instance);
partial void InsertJob(Job instance);