Ejemplo n.º 1
0
        public async Task <Talk> Add(Talk talk)
        {
            await dbContext.Talks.AddAsync(talk);

            await dbContext.SaveChangesAsync();

            return(talk);
        }
Ejemplo n.º 2
0
        public async Task <Speaker> Add(Speaker speaker)
        {
            await dbContext.Speakers.AddAsync(speaker);

            await dbContext.SaveChangesAsync();

            return(speaker);
        }