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

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

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

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

            return(Ok());
        }