Exemple #1
0
 public void Add(Princess princess)
 {
     if (princess != null)
     {
         _context.Princesses.Add(princess);
         _context.SaveChanges();
     }
 }
Exemple #2
0
 public void Add(Knight knight)
 {
     if (knight != null)
     {
         _context.Knights.Add(knight);
         _context.SaveChanges();
     }
 }