Ejemplo n.º 1
0
 public static void Add(expenditure_tbl expenditure)
 {
     try
     {
         using (HomeCommitteeDBEntities db = new HomeCommitteeDBEntities())
         {
             db.expenditure_tbl.Add(expenditure);
         }
     }
     catch
     {
         throw;
     }
 }
Ejemplo n.º 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;
     }
 }