public IHttpActionResult GetFormQuestionType() { try { ViewModel.tblFormQuestionType ObjFormQuestionType = new ViewModel.tblFormQuestionType(); JArray JsonFormQuestionType = BisFormQuestionType.GetFormQuestionTypeJsonData(ObjFormQuestionType); return(Ok(JsonFormQuestionType)); } catch (Exception ex) { return(NotFound()); } }
public IHttpActionResult DeleteFormQuestionType(ViewModel.tblFormQuestionType DelFormQuestionType) { try { bool ret = BisFormQuestionType.DeleteFormQuestionType(DelFormQuestionType); if (ret) { return(Ok(ret)); } else { return(NotFound()); } } catch (Exception ex) { return(NotFound()); } }
public JArray GetFormQuestionTypeJsonData(ViewModel.tblFormQuestionType tblFormQuestionType) { return(sqlHelper.ReturnJsonData("sp_tblFormQuestionType_GetData", tblFormQuestionType)); }
public bool DeleteFormQuestionType(ViewModel.tblFormQuestionType tblFormQuestionType) { return(sqlHelper.RunProcedure("sp_tblFormQuestionType_Delete", tblFormQuestionType) > 0); }
public bool AddFormQuestionType(ViewModel.tblFormQuestionType tblFormQuestionType) { return(sqlHelper.RunProcedure("sp_tblFormQuestionType_Insert", tblFormQuestionType) > 0); }