public IHttpActionResult GetTreeRulePropertyByIDProduct(ViewModel.tblTreeRuleProperty TreeRulePropertySearch) { try { JArray JsonTreeRuleProperty = BisTreeRuleProperty.GetTreeRulePropertyJsonDataByIDProduct(TreeRulePropertySearch); return(Ok(JsonTreeRuleProperty)); } catch (Exception ex) { return(NotFound()); } }
public IHttpActionResult AddTreeRuleProperty(ViewModel.tblTreeRuleProperty obj) { try { bool ret = BisTreeRuleProperty.AddTreeRuleProperty(obj); if (ret) { return(Ok(ret)); } else { return(NotFound()); } } catch (Exception ex) { return(NotFound()); } }
public JArray GetTreeRulePropertyJsonDataByIDProduct(ViewModel.tblTreeRuleProperty tblTreeRuleProperty) { return(sqlHelper.ReturnJsonData("sp_tblTreeRuleProperty_GetDataByIDProduct", tblTreeRuleProperty)); }
public bool AddTreeRuleProperty(ViewModel.tblTreeRuleProperty tblTreeRuleProperty) { return(sqlHelper.RunProcedure("sp_tblTreeRuleProperty_Insert", tblTreeRuleProperty) > 0); }