public void delTeacher()
 {
     try
     {
         string Id = context.Request.QueryString["Id"];
         TeacherService service = new TeacherService();
         service.del(service.get(typeof(Teacher), Id));
         context.Response.Write("1");
     }
     catch (Exception e)
     {
         context.Response.Write("0");
     }
 }
 public void getTeacher()
 {
     string Id = context.Request.QueryString["Id"];
     TeacherService service = new TeacherService();
     Teacher Teacher = (Teacher)service.get(typeof(Teacher), Id);
     String json = JsonConvert.SerializeObject(Teacher);
     context.Response.Write(json);
 }