public IDataResult <List <House> > GetAll() { if (DateTime.Now.Hour == 1) { return(new ErrorDataResult <List <House> >(Messages.MaintenanceTime)); } return(new SuccessDataResult <List <House> >(_houseDal.GetAll())); }
public IDataResult <List <House> > GetAllByHouseType(string houseType) { return(new SuccessDataResult <List <House> >(_houseDal.GetAll(p => p.HouseType == houseType))); }
public List <House> GetAll() { return(_houseDal.GetAll()); }
public IDataResult <List <House> > GetAll() { return(new SuccessDataResult <List <House> >(_houseDal.GetAll(), Messages.HouseGetAll)); }