Beispiel #1
0
        public IDataResult <Customers> GetById(int customerId)
        {
            var getById = _customerDal.Get(u => u.UserId == customerId);

            return(new SuccessDataResult <Customers>(getById));
        }
 public IDataResult <Customers> GetById(int id)
 {
     return(new SuccessDataResult <Customers>(_customersDal.Get(c => c.Id == id)));
 }
Beispiel #3
0
 public IDataResult <Customer> GetById(int id)
 {
     return(new SuccessDataResult <Customer>(_customersDal.Get(c => c.UserId == id), Messages.Success));
 }
 public IDataResult <Customer> GetById(int id)
 {
     return(new SuccessDataResult <Customer>(_cutomersDal.Get(p => p.CustomerId == id)));
 }