Example #1
0
        public ActionResult DeletePostByID(string post_id)
        {
            PostDataAccess pda          = new PostDataAccess();
            var            deleteresult = pda.DeletePostByID(post_id);

            if (deleteresult)
            {
                return(Json("success"));
            }
            else
            {
                return(Json("error"));
            }
        }