public WebResult GetQuestionsForSubCat(int subCategoryId, int level) { WebResult wb = new WebResult(); try { wb.value = QuestionLogic.GetQuestions(subCategoryId, level); wb.message = "success"; wb.status = true; return(wb); } catch (Exception ex) { wb.status = false; wb.message = ex.Message; return(wb); } }