[HttpPut("publishFeedback/{id}")]       // PUT /api/patientFeedback/publishFeedback/{id}
        public IActionResult PublishFeedback(int id)
        {
            PatientFeedback result = App.Instance().PatientFeedbackService.PublishPatientFeedback(id);

            if (result == null)
            {
                return(NotFound());
            }
            return(Ok(PatientFeedbackMapper.PatientFeedbackToPatientFeedbackDto(result)));
        }
        [HttpPost]      // POST /api/patientFeedback
        public IActionResult Add(PatientFeedbackDto dto)
        {
            if (dto.Text.Length <= 0)
            {
                return(BadRequest());
            }
            PatientFeedback patientFeedback = PatientFeedbackMapper.PatientFeedbackDtoToPatientFeedback(dto, null);

            App.Instance().PatientFeedbackService.AddEntity(patientFeedback);
            return(Ok());
        }
        [HttpGet("getPublishedFeedbacks")]       // GET /api/patientFeedback/getPublishedFeedbacks
        public IActionResult GetPublishedFeedbacks()
        {
            List <PatientFeedbackDto> result = new List <PatientFeedbackDto>();

            App.Instance().PatientFeedbackService.GetPublishedFeedbacks().ToList().ForEach(feedback => result.Add(PatientFeedbackMapper.PatientFeedbackToPatientFeedbackDto(feedback)));
            return(Ok(result));
        }
        [HttpGet]       // GET /api/patientFeedback
        public IActionResult GetAllFeedbacks()
        {
            List <PatientFeedbackDto> result = new List <PatientFeedbackDto>();

            this.patientFeedbackService.GetAllEntities().ToList().ForEach(feedback => result.Add(PatientFeedbackMapper.PatientFeedbackToPatientFeedbackDto(feedback)));
            return(Ok(result));
        }