public IDataResult <List <Customers> > GetAll()
        {
            if (DateTime.Now.Hour == 20)
            {
                return(new ErrorDataResult <List <Customers> >(Messages.MaintenanceTime));
            }

            return(new SuccessDataResult <List <Customers> >(_customerDal.GetAll(), Messages.CustomersListed));
        }
Beispiel #2
0
        public IDataResult <List <Customers> > GetAll()
        {
            var getAll = _customerDal.GetAll();

            return(new SuccessDataResult <List <Customers> >(getAll));
        }
 public IDataResult <List <Customers> > GetAll()
 {
     return(new SuccessDataResult <List <Customers> >(_customersDal.GetAll(), Messages.CustomersListed));
 }
Beispiel #4
0
 public IDataResult <List <Customers> > GetAll()
 {
     return(new SuccessDataResult <List <Customers> >(_customersDal.GetAll(), "başarılı"));
 }
Beispiel #5
0
 public IDataResult <List <Customer> > GetAll()
 {
     return(new SuccessesDataResult <List <Customer> >(_customerDal.GetAll()));
 }
 public IDataResult <List <Customers> > GetAll()
 {
     return(new DataResult <List <Customers> >(_customersDal.GetAll(), true, "Müşteriler listelendi."));
 }