Пример #1
0
        public ActionResult <AttendanceDto> CreateAttendance([FromBody] AttendanceDto dto)
        {
            AttendanceDto createdDto;

            try
            {
                createdDto = _attendanceService.Create(dto);
            }
            catch (KeyNotFoundException e)
            {
                return(NotFound(e.Message));
            }

            return(Ok(createdDto));
        }