public void AddEnemyToEpisode(int enemyId, int episodeId) { var episodeEnemy = new EpisodeEnemy() { EnemyId = enemyId, EpisodeId = episodeId }; _context.Add <EpisodeEnemy>(episodeEnemy); _context.SaveChanges(); }
public void CreatAuthor(string name) { var author = new Author() { AuthorName = name }; _context.Add <Author>(author); _context.SaveChanges(); }
public void AddCompanionToEpisode(int companionId, int episodeId) { var episodeCompanion = new EpisodeCompanion() { CompanionId = companionId, EpisodeId = episodeId }; _context.Add <EpisodeCompanion>(episodeCompanion); _context.SaveChanges(); }
public void CreatEpisode(Episode episode) { _context.Add <Episode>(episode); _context.SaveChanges(); }