/// <summary> /// 刪除員工資料 /// </summary> /// <param name="id"></param> /// <returns></returns> public ActionResult Delete(int id) { EmpService service = new EmpService(); var result = false; try { if (id > 0) { result = service.RemoveEmployee(id); } } catch (Exception ex) { throw ex; } return(RedirectToAction("Inquiry", "Emp")); }