public void InsertAndDelete() { Guid customerId = Guid.Parse("88A96958-A302-4913-9ADC-1997B49C7571"); string referenceNumber = "8"; decimal orderValue = 10.2m; Bus.Order order = new Bus.Order(); Guid orderId = order.Insert(customerId, referenceNumber, orderValue); order.Delete(orderId); }
public Order(Business.Order o) { this.OrderId = o.OrderWithCustomer.OrderId; this.ReferenceNumber = o.OrderWithCustomer.ReferenceNumber; this.OrderValue = o.OrderWithCustomer.OrderValue; this.OrderDate = o.OrderWithCustomer.OrderDate; this.CustomerName = o.OrderWithCustomer.LastName + ", " + o.OrderWithCustomer.FirstName; this.CustomerId = o.OrderWithCustomer.CustomerId; //KF: A better picture would be a trasparent one so that it doesn't stand out when the row is highlighted this.SearchPicture = (Image)GenesisGUI.Properties.Resources.ResourceManager.GetObject("Search"); //if(o.Model.Customer != null) { // this.CustomerName = o.Model.Customer.LastName + ", " + o.Model.Customer.FirstName; //} }