예제 #1
0
        // Employer methods
        /// <summary>
        /// verify if the fundation of the employer was in more than a half of year
        /// </summary>
        /// <param name="newEmployer"></param>
        public void AddEmployer(Employer newEmployer)
        {
            if (newEmployer.id < 0)
            {
                throw new Exception("Employer ID cannot be a negative number.");
            }

            dal.AddEmployer(newEmployer);
        }