Example #1
0
 public IHttpActionResult GetSelectedDataByIDContent(ViewModel.tblContentDictionary obj)
 {
     try
     {
         JArray JsonContentDictionary = BisContentDictionary.GetSelectedDataByIDContent(obj);
         return(Ok(JsonContentDictionary));
     }
     catch (Exception ex)
     {
         return(NotFound());
     }
 }
Example #2
0
 public IHttpActionResult DeleteContentDictionary(ViewModel.tblContentDictionary obj)
 {
     try
     {
         bool ret = BisContentDictionary.DeleteContentDictionary(obj);
         if (ret)
         {
             return(Ok(ret));
         }
         else
         {
             return(NotFound());
         }
     }
     catch (Exception ex)
     {
         return(NotFound());
     }
 }
Example #3
0
 public JArray GetContentDictionaryByIDContentJsonData(ViewModel.tblContentDictionary ContentDictionary)
 {
     return(sqlHelper.ReturnJsonData("sp_tblContentDictionary_GetDataByIDContent", ContentDictionary));
 }
Example #4
0
 public bool DeleteContentDictionary(ViewModel.tblContentDictionary tblContentDictionary)
 {
     return(sqlHelper.RunProcedure("sp_tblContentDictionary_Delete", tblContentDictionary) > 0);
 }
Example #5
0
 public bool ChangeSortInContentDictionary(ViewModel.tblContentDictionary tblContentDictionary)
 {
     return(sqlHelper.RunProcedure("sp_tblContentDictionary_ChangeSortInContentDictionary", tblContentDictionary) > 0);
 }
Example #6
0
 public bool AddContentDictionary(ViewModel.tblContentDictionary tblContentDictionary)
 {
     return(sqlHelper.RunProcedure("sp_tblContentDictionary_Insert", tblContentDictionary) > 0);
 }