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