public ShipperAM getShipper(int ShipperID = 0) { ShipperAM oShipper = new ShipperAM(); ShipperDao dao = new ShipperDao(); try { oShipper = dao.getShipper(ShipperID); } catch (Exception ex) { ErrMsgInfo oErr = new ErrMsgInfo(); oErr.ex = ex; HttpResponseMessage RepMsg = oErr.RepMsg; throw new HttpResponseException(RepMsg); } return(oShipper); }
public List <ShipperAM> getShippers() { List <ShipperAM> oShippers = new List <ShipperAM>(); ShipperDao dao = new ShipperDao(); try { oShippers = dao.getShipprs(); } catch (Exception ex) { ErrMsgInfo oErr = new ErrMsgInfo(); oErr.ex = ex; HttpResponseMessage RepMsg = oErr.RepMsg; throw new HttpResponseException(RepMsg); } return(oShippers); }