public long SavePurchaseOrder(OrderDto dto) { this.purchaseOrder = dto.DtoToEntityPurchaseOrder(); if (_purchaseOrder.Insert(this.purchaseOrder).IsNull()) { return(0); } return(this.purchaseOrder.PurchaseOrderID); }