Exemplo n.º 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());
     }
 }
Exemplo n.º 2
0
 public bool DeleteContentCategory(ViewModel.tblContentCategory ContentCategory)
 {
     return(sqlHelper.RunProcedure("sp_tblContentCategory_DeleteRow", ContentCategory) > 0);
 }
Exemplo n.º 3
0
 public bool UpdateContentCategory(ViewModel.tblContentCategory ContentCategory)
 {
     return(sqlHelper.RunProcedure("sp_tblContentCategory_Update", ContentCategory) > 0);
 }
Exemplo n.º 4
0
 public bool AddContentCategory(ViewModel.tblContentCategory ContentCategory)
 {
     return(sqlHelper.RunProcedure("sp_tblContentCategory_Insert", ContentCategory) > 0);
 }