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())); }
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())); }