Ejemplo n.º 1
0
 public void InsertUser(User user)
 {
     using (ConfigurationDataContext context = new ConfigurationDataContext(Utility.GetConnectionString(configurationDataContext)))
     {
         user.Password = Cryptography.EncryptData(user.Password, saltKeyword);
         context.AddToUsers(user);
         context.SaveChanges();
     }
 }