Esempio n. 1
0
        //public Reference.Repository.Student GetStudentById(int value)
        //{
        //    StudentRepository rs = new StudentRepository();
        //    return rs.GetStudent(17);
        //    //return new Student { StudentID = 1, FirstName = "Rowan", LastName = "Atkinson", Age = 55 };
        //}
        public Reference.Repository.Student GetStudent(string id)
        {
            StudentRepository rs = new StudentRepository();
            return rs.GetStudent(id==null ? "0" : id);

            //return new Student { StudentID = 1, FirstName = "Rowan", LastName = "Atkinson", Age = 55 };
        }
Esempio n. 2
0
        //public Reference.Repository.Student GetStudentById(int value)
        //{
        //    StudentRepository rs = new StudentRepository();
        //    return rs.GetStudent(17);
        //    //return new Student { StudentID = 1, FirstName = "Rowan", LastName = "Atkinson", Age = 55 };
        //}
        public Student GetStudent()
        {
            StudentRepository rs = new StudentRepository();
            //return rs.GetStudent(17).ToString();
               // return "Bullocks";

            return new Student { StudentID = 1, FirstName = "Rowan", LastName = "Atkinson", Age = 55 };
        }