示例#1
0
        public async Task <AgendaItemSpeaker> AddAgendaItemToSpeaker(AgendaItemSpeaker item)
        {
            try
            {
                await _dbContext.AddAsync(item);

                await _dbContext.SaveChangesAsync();

                return(item);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#2
0
 public async Task <AgendaItemSpeaker> AddAgendaItemToSpeaker(AgendaItemSpeaker item)
 {
     return(await _speakerRepository.AddAgendaItemToSpeaker(item));
 }