Ejemplo n.º 1
0
 public void ResetProductPlacement(ProductPlacement ppObj)
 {
     try
     {
         db.Entry(ppObj).State = EntityState.Unchanged;
     }
     catch
     { }
 }
Ejemplo n.º 2
0
        //---------------------------------------------------------------------

        public void AddProductPlacement(ProductPlacement productPlacement)
        {
            productPlacement.ExpenseBudgetID = Cost_Budgeting_Logic.ExpenseBudgetManagement.Instance.GetExpenseBudgetID();
            db.ProductPlacement.Add(productPlacement);
            db.SaveChanges();
        }