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)); }
public IEnumerable <Car> GetAll() { return(_carDao.GetAll()); }
public List <Car> GetAll() { return(_icarDao.GetAll()); }
public List <Car> GetAllCars() { var cars = _carDao.GetAll().ToList(); return(cars); }