Example #1
0
        public List <Student> DisplayFromFile()
        {
            List <Student> sList = new List <Student>();

            try
            {
                StudentDAL dalobj = new StudentDAL();

                sList = dalobj.DeserializeStudent();
                if (sList.Count <= 0)
                {
                    throw new StudentException("No Records Found in File");
                }
            }

            catch (StudentException e)
            { throw e; }

            catch (IOException e)
            { throw e; }
            return(sList);
        }