Exemple #1
0
        public ActionResult Delete(string id)
        {
            var iVal = 0;

            Utility.Operate(this, Operations.Delete, () =>
            {
                iVal = _news.Delete(id);
                return(iVal);
            });

            var page = Pagination.CheckPageIndexWhenDeleted(this, iVal);

            return(Redirect(string.Format("~/Admin/News/Index?MenuID={0}&page={1}", TempData["_menuid"], page)));
        }
Exemple #2
0
        public ActionResult DeletePhoto(string id, int NewsId = 0)
        {
            var iVal = 0;

            Utility.Operate(this, Operations.Delete, () =>
            {
                iVal = _photo.Delete(id);
                return(iVal);
            });

            var page = Pagination.CheckPageIndexWhenDeleted(this, iVal);

            return(Redirect(string.Format("~/Admin/Cases/Show/{0}?page={1}", NewsId, page)));
        }