public IDataResult <List <Project> > GetAll() { if (DateTime.Now.Hour == 22) { return(new ErrorDataResult <List <Project> >(Messages.MaintenanceTime)); } return(new SuccessDataResult <List <Project> >(_projectdal.GetAll(), Messages.OperationSuccessful)); }
public IEnumerable <Project> GetAll() { return(_projectDal.GetAll()); }
public IDataResult <List <ProjectDetailDto> > GetAll() { return(new SuccessDataResult <List <ProjectDetailDto> >(_projectDal.GetAll())); }