In ASP.NET MVC 3 and above you can return a HttpNotFoundResult from the controller.
return new HttpNotFoundResult("optional description");
In ASP.NET MVC 3 and above you can return a HttpNotFoundResult from the controller.
return new HttpNotFoundResult("optional description");