예제 #1
0
        public void Remove(int NinjaId, int JutsuId)
        {
            Ninjutsu thingToRemove = Ninjitsus
                                     .Where(n => n.NinjaId == NinjaId)
                                     .FirstOrDefault(n => n.JutsuId == JutsuId);

            Ninjitsus.Remove(thingToRemove);
            SaveChanges();
        }
예제 #2
0
 public void Create(Ninjutsu ninjutsu)
 {
     Ninjitsus.Add(ninjutsu);
     SaveChanges();
 }