public void GetAllUsers(HttpContext context)
        {
            List <Student> students = StudentBal.GetUsers();
            var            js       = new JavaScriptSerializer();

            context.Response.Write(js.Serialize(students));
        }
Example #2
0
        // GET api/values
        public List <Student> Get()
        {
            List <Student> students = StudentBal.GetUsers();

            return(students);
        }