Esempio n. 1
0
        public ActionResult Delete(int id)
        {
            if (Session["UserId"] == null)
            {
                return Redirect("/admin/login");
            }

            NewsService newsService = new NewsService();

            newsService.RemoveNews(id);

            return Redirect(Request.UrlReferrer.AbsoluteUri);
        }