Пример #1
0
 public IDataResult <List <ShippingDetail> > GetList(int userId)
 {
     try
     {
         return(new SuccessDataResult <List <ShippingDetail> >(
                    _shippingDetailDal.GetList(sd => sd.CustomerId == userId)));
     }
     catch (Exception)
     {
         return(new ErrorDataResult <List <ShippingDetail> >(Messages.ThereIsntShippingDetails));
     }
 }
Пример #2
0
 public List <ShippingDetail> GetAll()
 {
     return(_shippingDetailDal.GetList());
 }