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

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

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

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

            return(Ok());
        }