예제 #1
0
 public static void Add(expenditure_tbl expenditure)
 {
     try
     {
         using (HomeCommitteeDBEntities db = new HomeCommitteeDBEntities())
         {
             db.expenditure_tbl.Add(expenditure);
         }
     }
     catch
     {
         throw;
     }
 }
예제 #2
0
 public static void Add(expenditure_tbl expenditure)
 {
     try
     {
         using (HomeCommitteeDBEntities db = new HomeCommitteeDBEntities())
         {
             db.expenditure_tbl.Add(expenditure);
             db.SaveChanges();
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }