Example #1
0
        public void Add(D.Account account, D.AccountProfile profile)
        {
            account.AddSalt();
            _context.Accounts.Add(ConvertToEF(account, profile));
            _context.SaveChanges();
            var x = _context.Accounts.FirstOrDefault(a => a.UserName == account.UserName);

            Debug.WriteLine(x.UserName);
        }
Example #2
0
        public void Add(D.Account account, D.AccountProfile profile)
        {
            if (account.UserName != null || profile.Name != null)
            {
                account.AddSalt();

                _context.Accounts.Add(ConvertToEF(account, profile));
                _context.SaveChanges();
            }
        }