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