コード例 #1
0
        public MeetingAgenda Put([FromBody] MeetingAgenda agenda)
        {
            _logger.LogInformation(Core.LogProvider.LoggingEvents.InsertItem, "MeetingAgenda - PUT - entry point {ID}", 1);
            var payload = JsonConvert.SerializeObject(agenda);

            _logger.LogInformation(Core.LogProvider.LoggingEvents.InsertItem, " sent data {payload}", payload);

            var userInfo = Request.ExtractAuth(User, _authenticationService);

            if (agenda.Id == Guid.Parse(_defaultAgendaId))
            {
                agenda.Id = Guid.NewGuid();
            }
            var result = _meetingService.CreateMeetingAgendaItem(agenda, userInfo.InfoResponse);

            return(result);
        }