Example #1
0
        public IDataResult <List <Tur> > GetAll()
        {
            var result = _turDal.GetAll();

            if (result.Count == 0)
            {
                return(new ErrorDataResult <List <Tur> >("Tür bulunamadı."));
            }
            return(new SuccessDataResult <List <Tur> >(result, "Türler başarıyla getirildi."));
        }
 public IDataResult <List <Tur> > GetAll()
 {
     return(new SuccessDataResult <List <Tur> >(_turDal.GetAll(), Messages.Listed));
 }
Example #3
0
 public List <Tur> GetAll()
 {
     return(_turDal.GetAll());
 }