/// <summary> /// Update into CustomerAction /// </summary> /// <param name="customeraction">CustomerAction</param> public void UpdateCustomerAction(CustomerAction customeraction) { if (customeraction == null) { return; } if (this._context.IsAttached(customeraction)) { this._context.CustomerActions.Attach(customeraction); } this._context.SaveChanges(); }
/// <summary> /// Insert into CustomerAction /// </summary> /// <param name="customeraction">CustomerAction</param> public void InsertCustomerAction(CustomerAction customeraction) { if (customeraction == null) { return; } if (!this._context.IsAttached(customeraction)) { this._context.CustomerActions.AddObject(customeraction); } this._context.SaveChanges(); }