Example #1
0
 public IHttpActionResult GetContentRelateDataByIDContent(ViewModel.tblContentRelate Obj)
 {
     try
     {
         JArray JsonContent = BisContentRelate.GetContentRelateDataByIDContent(Obj);
         return(Ok(JsonContent));
     }
     catch
     {
         return(NotFound());
     }
 }
Example #2
0
 public IHttpActionResult DeleteContentRelate(ViewModel.tblContentRelate obj)
 {
     try
     {
         bool ret = BisContentRelate.DeleteContentRelate(obj);
         if (ret)
         {
             return(Ok());
         }
         else
         {
             return(NotFound());
         }
     }
     catch
     {
         return(NotFound());
     }
 }
Example #3
0
 public bool AddContentRelate(ViewModel.tblContentRelate ContentRelate)
 {
     return(sqlHelper.RunProcedure("sp_tblContentRelate_Insert", ContentRelate) > 0);
 }
Example #4
0
 public bool DeleteContentRelate(ViewModel.tblContentRelate ContentRelate)
 {
     return(sqlHelper.RunProcedure("sp_tblContentRelate_Delete", ContentRelate) > 0);
 }
Example #5
0
 public JArray GetContentRelateDataByIDContent(ViewModel.tblContentRelate ContentRelate)
 {
     return(sqlHelper.ReturnJsonData("sp_tblContentRelate_GetDataByIDContent", ContentRelate));
 }