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(); } }