[HttpGet("getSurveyResults")] // GET /api/survey/getSurveyResults public IActionResult GetSurveyResults() { return(Ok(QuestionResultMapper.CreateQuestionResultsDto(this.answerService.GetAnswersByQuestion()))); }
[HttpGet("getSurveyResultsForDoctors")] // GET /api/survey/getSurveyResultsForDoctors public IActionResult GetSurveyResultsForDoctors() { return(Ok(QuestionResultMapper.CreateDoctorResultsDto(this.surveyService.GetSurveyResultsForAllDoctors(), App.Instance().DoctorService.GetAllEntities()))); }
[HttpGet("getSurveyResults")] // GET /api/survey/getSurveyResults public IActionResult GetSurveyResults() { return(Ok(QuestionResultMapper.CreateQuestionResultsDto(App.Instance().AnswerService.GetAnswersByQuestion()))); }