示例#1
0
 public IHttpActionResult GetTreeRulePropertyByIDProduct(ViewModel.tblTreeRuleProperty TreeRulePropertySearch)
 {
     try
     {
         JArray JsonTreeRuleProperty = BisTreeRuleProperty.GetTreeRulePropertyJsonDataByIDProduct(TreeRulePropertySearch);
         return(Ok(JsonTreeRuleProperty));
     }
     catch (Exception ex)
     {
         return(NotFound());
     }
 }
示例#2
0
 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());
     }
 }
示例#3
0
 public JArray GetTreeRulePropertyJsonDataByIDProduct(ViewModel.tblTreeRuleProperty tblTreeRuleProperty)
 {
     return(sqlHelper.ReturnJsonData("sp_tblTreeRuleProperty_GetDataByIDProduct", tblTreeRuleProperty));
 }
示例#4
0
 public bool AddTreeRuleProperty(ViewModel.tblTreeRuleProperty tblTreeRuleProperty)
 {
     return(sqlHelper.RunProcedure("sp_tblTreeRuleProperty_Insert", tblTreeRuleProperty) > 0);
 }