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));
 }
Esempio n. 2
0
 public IEnumerable <Project> GetAll()
 {
     return(_projectDal.GetAll());
 }
Esempio n. 3
0
 public IDataResult <List <ProjectDetailDto> > GetAll()
 {
     return(new SuccessDataResult <List <ProjectDetailDto> >(_projectDal.GetAll()));
 }