public async Task <ActionResult> Update(SubjectDto subjectDto) { try { await _subjectService.UpdateEntity(subjectDto); } catch (Exception e) { return(BadRequest(e.Message)); } return(Ok()); }
public async Task <ActionResult> Update(AttemptDto attemptDto) { try { await _attemptService.UpdateEntity(attemptDto); } catch (Exception e) { return(BadRequest(e.Message)); } return(Ok()); }
public async Task <ActionResult> Update(QuestionDto questionDto) { try { await _questionService.UpdateEntity(questionDto); } catch (Exception e) { return(BadRequest(e.Message)); } return(Ok()); }
public async Task <ActionResult> Update(TopicDto topicDto) { try { await _topicService.UpdateEntity(topicDto); } catch (Exception e) { return(BadRequest(e.Message)); } return(Ok()); }