Example #1
0
 public void Add(CostAccounting budCost, string inputUser)
 {
     using (pm2Entities entities = new pm2Entities())
     {
         Bud_CostAccounting accounting = new Bud_CostAccounting {
             Id      = budCost.Id,
             CBSCode = budCost.Code,
             Name    = budCost.Name,
             Type    = budCost.Type,
             Note    = budCost.Note
         };
         entities.AddToBud_CostAccounting(accounting);
         entities.SaveChanges();
     }
 }