internal long DeleteBlogPost(BOBlogPost model) { try { long result = 0; Hashtable ht = new Hashtable(); ht.Add("BlogPostID", model.BlogPostID); ht.Add("CreatedBy", model.CreatedBy); ht.Add("CreatedPC", model.CreatedPC); result = Convert.ToInt64(pbsUtility.InsertData(ht, "sp_DeleteBlogPost")); return(result); } catch (Exception ex) { throw new Exception(ex.Message.ToString()); } }
internal long UpdateBlogPost(BOBlogPost model) { try { long result = 0; Hashtable ht = new Hashtable(); ht.Add("BlogPostID", model.BlogPostID); ht.Add("PostTypeID", model.PostTypeID); ht.Add("PostTitle", model.PostTitle); ht.Add("Details", model.Details); ht.Add("Remarks", model.Remarks); ht.Add("CreatedBy", model.CreatedBy); ht.Add("CreatedPC", model.CreatedPC); result = Convert.ToInt64(pbsUtility.InsertData(ht, "sp_UpdateBlogPost")); return(result); } catch (Exception ex) { throw new Exception(ex.Message.ToString()); } }