示例#1
0
        public ActionResult ReviewDelete(string id, string DelID)
        {
            int num  = _reviewService.DeletePro(id);
            int numb = _reviewproService.DeleteByReviewId(id);

            if (num > 0)
            {
                SuccessNotification("删除成功");
                if (string.IsNullOrEmpty(DelID))
                {
                    return(Redirect(Url.Action("ReviewList", "Review")));
                }
                else
                {
                    return(Redirect(Url.Action("Projectinfo", "Project", new { id = DelID })));
                }
            }
            else
            {
                ErrorNotification("删除失败");
                return(Redirect(Url.Action("ReviewList", "Review")));
            }
        }