public async Task <IHttpActionResult> GetById(int id)
        {
            Course course = await courseService.GetById(id);

            if (course == null)
            {
                return(NotFound());
            }


            CourseDTO courseDTO = mapper.Map <CourseDTO>(course);

            return(Ok(courseDTO));
        }