public IActionResult GetById([FromRoute] Guid courseEntityId) { var result = _courseLogic.GetById(courseEntityId); if (result == null) { return(NotFound()); } return(Ok(result)); }
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")); } }
public ActionResult <CourseDto> GetById([FromRoute] Guid courseId) { var course = _courseLogic.GetById(courseId); return(Ok(course)); }