Ejemplo n.º 1
0
        public Prepod FindMinSalary()
        {
            var    min   = int.MaxValue;
            Prepod minPr = null;

            foreach (var prepod in Prepods)
            {
                if (prepod.Salary >= min)
                {
                    continue;
                }
                min   = prepod.Salary;
                minPr = prepod;
            }

            return(minPr);
        }
Ejemplo n.º 2
0
 public Department(string name, Prepod head, List <Prepod> prepods)
 {
     Name    = name;
     Head    = head;
     Prepods = prepods;
 }
Ejemplo n.º 3
0
 public Department(string name, Prepod head)
 {
     Name    = name;
     Prepods = new List <Prepod>();
     Head    = head;
 }