public void GetStudentsByTeacherIdTest()
        {
            CrossTable cross = new CrossTable();

            var expected = "bobby";

            var actual = cross.GetStudentsByTeacherId(8);

            Assert.AreEqual(expected, actual.First().FirstName);
        }
        public IHttpActionResult GetStudentsByTeacherId(int id)
        {
            var students = cross.GetStudentsByTeacherId(id);

            if (!students.Any())
            {
                return(Content(HttpStatusCode.NotFound, "List is empty"));
            }

            return(Ok(students));
        }