Beispiel #1
0
        public void contact(string mail, string tel, string table, string mobile1, string mobile2, string person)
        {
            emp_contactModel ct = new emp_contactModel();

            ct.contact_email   = mail;
            ct.contact_phone   = tel;
            ct.contact_table   = table;
            ct.contact_mobile1 = mobile1;
            ct.contact_mobile2 = mobile2;
            ct.contact_emp_id  = person;

            ct.insert_contact();
        }
Beispiel #2
0
        public IActionResult insertContact(string email, string phone_table, string phone, string mobile1, string mobile2, string emp_id)
        {
            emp_contactModel contact = new emp_contactModel();

            contact.contact_email   = email;
            contact.contact_table   = phone_table;
            contact.contact_phone   = phone;
            contact.contact_mobile1 = mobile1;
            contact.contact_mobile2 = mobile2;
            contact.contact_emp_id  = emp_id;
            contact.insert_contact();

            return(RedirectToAction("emp", "Employee", new { code = emp_id }));
        }