public IHttpActionResult PohadjeniPredmeti(int id) { //promjeni ime var student = db.Students.Find(id); if (student == null) { return(NotFound()); } return(Ok(db.tsp_Student_PohadajniPredmeti(id).ToList())); }