Example #1
0
 public List <UserAD> GetAllUsers()
 {
     using (var db = new UsersADEntities1())
     {
         return(db.UserADs.ToList());
     }
 }
Example #2
0
 public void AdUser(UserAD user)
 {
     using (var db = new UsersADEntities1())
     {
         db.UserADs.Add(user);
         db.SaveChangesAsync();
     }
 }