public ActionResult CompanyDetail(EmployerCompany emp, int id) { JobNameID jnd = new JobNameID(id); ViewBag.Gmap = db.EmployerCompany.Find(job.GetById(id).CompanyID).CompanyAdress.ToString(); ViewBag.job = jnd; return(View(_Emp.GetById(job.GetById(id).CompanyID))); }
public ActionResult Insert(EmployerCompany emp) { if (this.ModelState.IsValid) { db.Create(emp); TempData["Result"] = String.Format("雇主{0}新增成功", emp.CompanyName); return(RedirectToAction("Login")); } else { ViewBag.Result = "資料錯誤,請檢查"; return(View(emp)); } }
public ActionResult Edit(EmployerCompany emp, int id) { emp.CompanyID = id; db.Update(emp); return(RedirectToAction("Index", new { id = id })); }
public ActionResult Edit(int id) { EmployerCompany _EPC = db.GetById(id); return(View(_EPC)); }
public ActionResult ChangePassword(EmployerCompany emp, int id) { emp.CompanyID = id; db.Update(emp); return(RedirectToAction("Index", new { id = Request.Cookies["nameid"].Value })); }
public ActionResult ChangePassword(int id) { EmployerCompany emp = db.GetById(id); return(View(emp)); }