Beispiel #1
0
        public ActionResult Delete(delete_action model)
        {
            bgk_yazi post = Db.bgk_yazi.Find(model.Id);

            BGKFunction.DeletePost(post);
            Db.bgk_yazi.Remove(post);
            Db.SaveChanges();
            return(Content("<script>$.BGK.SuccessModal('Yazı başarılı bir şekilde silindi.', function (){ window.location.href='" + Url.Action("index") + "'; }, 1500);</script>"));
        }