Beispiel #1
0
 public static bool AddNew(EmployeeTable emp)
 {
     try
     {
         using (taxisEntities db = new taxisEntities())
         {
             db.EmployeeTables.Add(emp);
             db.SaveChanges();
             return(true);
         }
     }
     catch (Exception e)
     {
         return(false);
     }
 }