public IActionResult GetById([FromRoute] Guid courseEntityId)
        {
            var result = _courseLogic.GetById(courseEntityId);

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

            return(Ok(result));
        }
예제 #2
0
        public async Task <IActionResult> Get(int id)
        {
            CourseDto courseDto = _courseLogic.GetById(id);

            if (courseDto != null)
            {
                return(Ok(courseDto));
            }
            else
            {
                return(NotFound("No se encontró el curso"));
            }
        }
예제 #3
0
        public ActionResult <CourseDto> GetById([FromRoute] Guid courseId)
        {
            var course = _courseLogic.GetById(courseId);

            return(Ok(course));
        }