Beispiel #1
0
 public IHttpActionResult FillRelatedDefineDetailProductDataByIDXDefineDetailProduct(object obj)
 {
     try
     {
         Bis.RelatedDefineDetailProductMethod BisRelatedDefineDetailProduct = new Bis.RelatedDefineDetailProductMethod();
         JObject JsonObject = JObject.Parse(obj.ToString());
         ViewModel.tblRelatedDefineDetailProduct GetRelatedDefineDetailProduct = new ViewModel.tblRelatedDefineDetailProduct();
         GetRelatedDefineDetailProduct.IDXDefineDetailProduct = JsonObject["IDXDefineDetailProduct"].ToString().StringToInt();
         JArray JsonContentCategory = BisRelatedDefineDetailProduct.GetJsonAllRelations(GetRelatedDefineDetailProduct);
         return(Ok(JsonContentCategory));
     }
     catch
     {
         return(NotFound());
     }
 }
Beispiel #2
0
 public bool DeleteRow(ViewModel.tblRelatedDefineDetailProduct RelatedDefineDetailProduct)
 {
     return(sqlHelper.RunProcedure("sp_tblRelatedDefineDetailProduct_DeleteRow", RelatedDefineDetailProduct) > 0);
 }
Beispiel #3
0
 public bool AddRelatedDefineDetailProduct(ViewModel.tblRelatedDefineDetailProduct RelatedDefineDetailProduct)
 {
     return(sqlHelper.RunProcedure("sp_tblRelatedDefineDetailProduct_Insert", RelatedDefineDetailProduct) > 0);
 }
Beispiel #4
0
 public JArray GetJsonAllRelations(ViewModel.tblRelatedDefineDetailProduct RelatedDefineDetailProduct)
 {
     return(sqlHelper.ReturnJsonData("[sp_tblRelatedDefineDetailProduct_GetRelatedDefineDetailProductJsonData]", RelatedDefineDetailProduct));
 }
Beispiel #5
0
 public DataSet GetAllRelations(ViewModel.tblRelatedDefineDetailProduct RelatedDefineDetailProduct)
 {
     return(sqlHelper.returnDataSet("sp_tblRelatedDefineDetailProduct_GetRelatedDefineDetailProductData", RelatedDefineDetailProduct));
 }