---
title: "Altering the ASP NET MVC model with an ActionFilter"
url: https://daily.dev/posts/altering-the-asp-net-mvc-model-with-an-actionfilter-pmu2bzjvz
source_url: https://nodogmablog.bryanhogan.net/2014/01/altering-the-asp-net-mvc-model-with-an-actionfilter
type: article
source: "No Dogma Blog (Bryan Hogan)"
published: 2026-05-31T07:47:04.001Z
updated: 2026-05-31T08:17:22.091Z
tags: ["c#"]
reading_time: 2
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Altering the ASP NET MVC model with an ActionFilter

**[No Dogma Blog \(Bryan Hogan\)](https://daily.dev/sources/bryanhogan)** · 2 min read · 0 upvotes · 0 comments

## Summary

A short guide on using ASP.NET MVC ActionFilters to intercept and modify the model returned from an action method. Covers creating a custom filter by inheriting from ActionFilterAttribute, overriding OnActionExecuted to alter outgoing model values, registering the filter globally via FilterConfig, and using OnActionExecuting to modify incoming action parameters.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://nodogmablog.bryanhogan.net/2014/01/altering-the-asp-net-mvc-model-with-an-actionfilter>

## Similar posts on daily.dev

- [ASP.NET Core Controllers: A Practical Guide to Building REST Endpoints](https://daily.dev/posts/asp-net-core-controllers-a-practical-guide-to-building-rest-endpoints-qbrdx5rqi) · We Are .NET · 0 upvotes · 0 comments
- [The silent filter: How an ASP.NET MVC quirk became a security leak](https://daily.dev/posts/the-silent-filter-how-an-asp-net-mvc-quirk-became-a-security-leak-wec0w8625) · The Art of Simplicity · 2 upvotes · 0 comments

---

Tags: [#c#](https://daily.dev/tags/c#)

[View this post on daily.dev](https://daily.dev/posts/altering-the-asp-net-mvc-model-with-an-actionfilter-pmu2bzjvz)
