コード例 #1
0
 public IDataResult <List <HouseDetailDto> > GetHouseDetails()
 {
     if (DateTime.Now.Hour == 23)
     {
         return(new ErrorDataResult <List <HouseDetailDto> >(Messages.MaintenanceTime));
     }
     return(new SuccessDataResult <List <HouseDetailDto> >(_houseDal.GetHouseDetails()));
 }
コード例 #2
0
 public IDataResult <List <HouseDetail> > GetAllHouseDetails()
 {
     return(new SuccessDataResult <List <HouseDetail> >(_houseDal.GetHouseDetails(), Messages.HouseGetById));
 }