public void ResetProductPlacement(ProductPlacement ppObj) { try { db.Entry(ppObj).State = EntityState.Unchanged; } catch { } }
//--------------------------------------------------------------------- public void AddProductPlacement(ProductPlacement productPlacement) { productPlacement.ExpenseBudgetID = Cost_Budgeting_Logic.ExpenseBudgetManagement.Instance.GetExpenseBudgetID(); db.ProductPlacement.Add(productPlacement); db.SaveChanges(); }