public IHttpActionResult GetCourse(int id) { try { return(Ok(_service.GetCourseById(id))); } catch (NotFoundException) { return(NotFound()); } catch (DbException) { return(InternalServerError()); } }
public IHttpActionResult GetCourse(int id) { try { return(Ok(_service.GetCourseById(id))); } catch (NotFoundException) { return(NotFound()); } catch (DbException) { return(InternalServerError()); } }