Пример #1
0
        public async Task <IActionResult> AddUserAgendaItem([FromBody] UserAgendaItem userAgendaitem)
        {
            try
            {
                var item = await _agendaService.AddUserAgendaItem(userAgendaitem);

                return(Ok(new
                {
                    item.AgendaItemSpeakers,
                    item.Description,
                    item.EndDate,
                    item.EventId,
                    item.Id,
                    item.Location,
                    item.StartDate,
                    item.Title,
                    IsUserAgendaItem = true
                }));
            }
            catch
            {
                return(BadRequest());
            }
        }