public void AddNote(Customer cust, String Note) { CustomerNote cn = new CustomerNote(Session); cn.Author = SecuritySystem.CurrentUserName; cn.Customers = cust; cn.NoteDate = DateTime.Now; cn.Text = Note; cn.Save(); }
public void AddNote(Customer cust, String Note) { //IObjectSpace objectSpace = CreateObject(objectSpace); //CustomerNote cn = objectSpace.CreateObject<CustomerNote>(); CustomerNote cn = new CustomerNote(Session); cn.Author = SecuritySystem.CurrentUserName; cn.Customers = cust; cn.NoteDate = DateTime.Now; cn.Text = Note; cn.Save(); }