public string GetInfo(string univerName)
 {
     try
     {
         UniverLogic univerLogic = new UniverLogic();
         return(univerLogic.GetInfo(univerName));
     }
     catch (Exception e)
     {
         return(e.Message);
     }
 }
 public List <string> GetUniverStudents(string univerName)
 {
     try
     {
         UniverLogic univerLogic = new UniverLogic();
         return(univerLogic.GetUniverStudents(univerName));
     }
     catch (Exception e)
     {
         return(new List <string> {
             e.Message
         });
     }
 }
 public Tuple <string, List <string> > GetUniverStudents(int univerId)
 {
     try
     {
         UniverLogic univerLogic = new UniverLogic();
         var         univers     = univerLogic.GenerateUnivers();
         var         univer      = univers
                                   .SingleOrDefault(u => u.Id == univerId);
         if (univer == null)
         {
             throw new Exception($" University with Id = {univerId} " +
                                 "was not found in the database 'Univer'. ");
         }
         return(Tuple
                .Create($" The following students study at the {univer.FullName}: ",
                        univerLogic.GetUniverStudents(univerId)));
     }
     catch (Exception e)
     {
         return(Tuple.Create(" Error! ", new List <string> {
             e.Message
         }));
     }
 }
        public IEnumerable <string> GetAllInfo()
        {
            var univerLogic = new UniverLogic();

            return(univerLogic.GetAllInfo());
        }