Exemplo n.º 1
0
        public void AddEmployee(string ename, string contact, string email, string role, int esalary, int workingHour, string offday, Employee_List E)
        {
            if (ename.Equals("") || role.Equals("") || esalary.Equals("") || workingHour.Equals(""))
            {
                E.ErrorMassage("Fill all the entries correctly");
            }

            else
            {
                NAME = ename; EMAIL = email; CONTACT = contact; SALARY = esalary; ROLE = role; HOUR = workingHour; OFF = offday;
                new DataAccess().NewEmployee(ename, contact, email, role, esalary, workingHour, offday, E);
            }
        }