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)); } }
public List <ShippingDetail> GetAll() { return(_shippingDetailDal.GetList()); }