示例#1
0
        public async Task <ActionResult> Update(SubjectDto subjectDto)
        {
            try
            {
                await _subjectService.UpdateEntity(subjectDto);
            }
            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }

            return(Ok());
        }
示例#2
0
        public async Task <ActionResult> Update(AttemptDto attemptDto)
        {
            try
            {
                await _attemptService.UpdateEntity(attemptDto);
            }
            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }

            return(Ok());
        }
示例#3
0
        public async Task <ActionResult> Update(QuestionDto questionDto)
        {
            try
            {
                await _questionService.UpdateEntity(questionDto);
            }
            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }

            return(Ok());
        }
示例#4
0
        public async Task <ActionResult> Update(TopicDto topicDto)
        {
            try
            {
                await _topicService.UpdateEntity(topicDto);
            }
            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }

            return(Ok());
        }