public virtual void Refresh()
            {
                PurchaseOrderLine o = PurchaseOrderLine.GetById(this.Id);

                this.DTO = o != null && o.DTO != null ? o.DTO : new GenieLamp.Examples.QuickStart.Services.Interfaces.QuickStart.PurchaseOrderLineDTO();
            }
 public static PurchaseOrderLine GetById(int id)
 {
     GenieLamp.Examples.QuickStart.Services.Interfaces.QuickStart.PurchaseOrderLineDTO dto = WebClientFactory.GetJsonClient()
                                                                                             .Get <GenieLamp.Examples.QuickStart.Services.Interfaces.QuickStart.PurchaseOrderLineResponse>(String.Format("/PurchaseOrderLineService/Id/{0}", id))
                                                                                             .PurchaseOrderLineDTO;
     return(dto == null ? null : new PurchaseOrderLine(dto));
 }
 public static PurchaseOrderLine GetByPurchaseOrderIdPosition(int purchaseOrderId, short position)
 {
     GenieLamp.Examples.QuickStart.Services.Interfaces.QuickStart.PurchaseOrderLineDTO dto = WebClientFactory.GetJsonClient()
                                                                                             .Get <GenieLamp.Examples.QuickStart.Services.Interfaces.QuickStart.PurchaseOrderLineResponse>(String.Format("/PurchaseOrderLineService/PurchaseOrderId/{0}/Position/{1}", purchaseOrderId, position))
                                                                                             .PurchaseOrderLineDTO;
     return(dto == null ? null : new PurchaseOrderLine(dto));
 }
 public PurchaseOrderLine(GenieLamp.Examples.QuickStart.Services.Interfaces.QuickStart.PurchaseOrderLineDTO dto) : base(dto)
 {
 }