public IActionResult editAdm(string emp_id, string adm_id_edit, string adm_date_edit, string adm_title_edit, string adm_detail_edit) { emp_admonishModel ad = new emp_admonishModel(); ad.selectByadmId(adm_id_edit); ad.insertAdmLOG(); ad.adm_id = adm_id_edit; ad.adm_date = adm_date_edit; ad.adm_title = adm_title_edit; ad.adm_detail = adm_detail_edit; ad.updateAdm(); return(RedirectToAction("emp", "Employee", new { code = emp_id })); }
public string dataForEdit(string adm) { emp_admonishModel admn = new emp_admonishModel(); return(admn.selectByadmId(adm)); }