Exemplo n.º 1
0
        public IDataResult <List <Teacher> > GetAll()
        {
            List <Teacher> result;

            try
            {
                result = _teacherDal.GetAll();
            }
            catch (Exception)
            {
                return(new ErrorDataResult <List <Teacher> >(new List <Teacher> {
                }, "Error getting all data"));
            }
            return(new SuccessDataResult <List <Teacher> >(result));
        }
 public IDataResult <List <Teacher> > GetAll()
 {
     return(new SuccessDataResult <List <Teacher> >(_teacherDal.GetAll()));
 }
 public List <Teacher> GetAll()
 {
     return(_teacherDal.GetAll());
 }