public void AddUser(string userName)
 {
     using (var db = new PhoneBookContext())
     {
         var user = new Account(userName) { Phones = new List<Phone>() };
         db.Account.Add(user);
         db.SaveChanges();
     }
 }
Beispiel #2
0
 public Document( Account account, List<Phone> phones)
 {
     Account = account;
     Phones = phones;
 }