Пример #1
0
 public IDataResult <List <CarDetailDto> > GetCarDetails()
 {
     if (DateTime.Now.Hour == 15)
     {
         return(new ErrorDataResult <List <CarDetailDto> >(Messages.MaintenanceTime));//Generate field dediğimizde Messages a ekleme yapar
     }
     return(new SuccessDataResult <List <CarDetailDto> >(_carProductDal.GetCarDetails(), Messages.ProductListed));
 }
Пример #2
0
 public IDataResult <List <CarDetailDto> > GetCarDetails()
 {
     return(new SuccessDataResult <List <CarDetailDto> >(_carProduct.GetCarDetails(), Messages.Listed));
 }
Пример #3
0
 public List <CarDetailDto> GetCarDetails()
 {
     return(_carProductDal.GetCarDetails());
 }