示例#1
0
 public IDataResult <List <Color> > GetAll()
 {
     if (DateTime.Now.Hour == 22)
     {
         return(new ErrorDataResult <List <Color> >(Messages.Maintenance));
     }
     return(new SuccessDataResult <List <Color> >(_colorDao.GetAll()));
 }
 public IDataResult <List <Color> > GetAll()
 {
     return(new SuccessDataResult <List <Color> >(_colorDao.GetAll()));
 }