Example #1
0
 public IDataResult <List <Car> > GetAll()
 {
     if (DateTime.Now.Hour == 22)
     {
         return(new ErrorDataResult <List <Car> >(Messages.Maintenance));
     }
     return(new SuccessDataResult <List <Car> >(_carDao.GetAll(), Messages.CarListed));
 }
Example #2
0
 public IEnumerable <Car> GetAll()
 {
     return(_carDao.GetAll());
 }
 public List <Car> GetAll()
 {
     return(_icarDao.GetAll());
 }
Example #4
0
        public List <Car> GetAllCars()
        {
            var cars = _carDao.GetAll().ToList();

            return(cars);
        }