예제 #1
0
        public ActionResult DeleteComments(DeleteCommentsModel post)
        {
            var commentIdsCsv = string.Join(",", post.Delete);

            Logger.Information($"Deleting comments with IDs \"{commentIdsCsv}\".");

            DB.Comments_DeleteComments(commentIdsCsv);

            return(Redirect(Request.UrlReferrer.ToString()));
        }
예제 #2
0
        public ActionResult DeleteComments(DeleteCommentsModel post)
        {
            var commentIdsCsv = string.Join(",", post.Delete);

            Logger.Information("Deleting comments with IDs \"{0}\".", commentIdsCsv);

            StoredProcs.Comments_DeleteComments(commentIdsCsv).Execute();

            return(Redirect(Request.UrlReferrer.ToString()));
        }