Пример #1
0
        public async Task <ActionResult> Add(MeetingAddDTO dto)
        {
            try
            {
                string id = User.Claims.FirstOrDefault(x => x.Type == ClaimTypes.NameIdentifier)?.Value;

                await _meetingRepository.AddFromDTOAsync(dto, Convert.ToInt32(id));

                return(Ok());
            }
            catch (System.Exception ex)
            {
                return(Problem(ex.Message));
            }
        }