Esempio n. 1
0
        public int RegisterEmployee(string name, string surname, string email)
        {
            IEmployee employee = factory.CreateEmployee(name, surname, email);
            int       id       = employeeRepository.AddEmployee(employee);

            Debug.WriteLine("Employee with ID " + id + " added to repo from facade");
            return(id);
        }
        public int RegisterEmployee(string name, string surname, string email)
        {
            IEmployee employee = factory.CreateEmployee(name, surname, email);
            int       id       = employeeRepository.AddEmployee(employee);

            Debug.WriteLine("Employee with ID " + id + " added to repo from facade");
            string content = "Congratulations on becoming a part of our team.";

            mailSender.SendMail(email, content);
            return(id);
        }