AndyPike.Castlecasts.Website.Controllers.AdminController.DeleteComment C# (CSharp) Méthode

DeleteComment() public méthode

public DeleteComment ( [ comment ) : void
comment [
Résultat void
        public void DeleteComment([ARFetch("id")]Comment comment)
        {
            comment.Delete();

            Flash["success"] = "The Castlecast was successfully deleted.";
            RedirectToAction("Dashboard");
        }