Example #1
0
        /// <summary>
        /// DeleteConfirmed
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult DeleteConfirmed(long id)
        {
            _reports = new ReportsService();
            var delete = _reports.DeleteReviewById(id);

            if (delete == null)
            {
                ViewBag.Message = "Something went wrong";
            }
            else
            {
                ViewBag.Message = "Deleted";
            }
            return(View("ManageReviews"));
        }