예제 #1
0
        public IActionResult update_contact(string emp_id, string email_edit, string table_edit, string phone_edit, string mobile1_edit, string mobile2_edit)
        {
            emp_contactModel ct = new emp_contactModel();

            ct.selectContact_emp(emp_id);
            ct.insert_contact_log();

            ct.contact_email   = email_edit;
            ct.contact_table   = table_edit;
            ct.contact_phone   = phone_edit;
            ct.contact_mobile1 = mobile1_edit;
            ct.contact_mobile2 = mobile2_edit;

            ct.update_contact();

            return(RedirectToAction("emp", "Employee", new { code = emp_id }));
        }
예제 #2
0
        public IActionResult editContact(string person_id, string ct_mail, string ct_phone, string ct_table, string ct_mobile1, string ct_mobile2)
        {
            emp_contactModel ct = new emp_contactModel();

            ct.selectContact_Person(person_id);
            ct.insert_contact_log();

            ct.contact_emp_id  = person_id;
            ct.contact_email   = ct_mail;
            ct.contact_phone   = ct_phone;
            ct.contact_table   = ct_table;
            ct.contact_mobile1 = ct_mobile1;
            ct.contact_mobile2 = ct_mobile2;

            ct.update_contact();

            return(RedirectToAction("editPersonal", "Personal", new { person = person_id }));
        }