public WebResult GetTestsForTeacher(int teacherId) { WebResult wb = new WebResult(); try { wb.value = TestLogic.GetTestsForTeacher(teacherId); wb.message = "success"; wb.status = true; return(wb); } catch (Exception ex) { wb.message = ex.Message; wb.status = false; return(wb); } }