Exemple #1
0
 public IHttpActionResult UpdateContentCategory(object obj)
 {
     try
     {
         JObject JsonObject = JObject.Parse(obj.ToString());
         ViewModel.tblContentCategory UpdateContentCategory = JsonObject.ToObject <ViewModel.tblContentCategory>();
         bool ret = BisContentCategory.UpdateContentCategory(UpdateContentCategory);
         if (ret)
         {
             return(Ok(ret));
         }
         else
         {
             return(NotFound());
         }
     }
     catch
     {
         return(NotFound());
     }
 }
Exemple #2
0
 public bool DeleteContentCategory(ViewModel.tblContentCategory ContentCategory)
 {
     return(sqlHelper.RunProcedure("sp_tblContentCategory_DeleteRow", ContentCategory) > 0);
 }
Exemple #3
0
 public bool UpdateContentCategory(ViewModel.tblContentCategory ContentCategory)
 {
     return(sqlHelper.RunProcedure("sp_tblContentCategory_Update", ContentCategory) > 0);
 }
Exemple #4
0
 public bool AddContentCategory(ViewModel.tblContentCategory ContentCategory)
 {
     return(sqlHelper.RunProcedure("sp_tblContentCategory_Insert", ContentCategory) > 0);
 }