public void InsertProduct(ProductEntity pt) { var statement2 = _session.Prepare(_strQueryInsert); var results2 = _session.Execute(statement2.Bind(new { session = Guid.Parse(pt.Session), product_id = pt.ID, company_id = pt.CompanyId, last_update = DateTime.Now.Ticks, date_update = Convert.ToInt32(DateTime.Now.ToString("yyyyMMdd")), product_entity = pt.GetJSON() })); }
private void PushChangeProduct(ProductEntity pt) { _producerProductChange.PublishString(pt.GetJSON()); }