exception is a namespace but is used like a type c# code example
Example: namespace but used like a type
namespace TestApplication // Remove .Controller
{
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
}
}
}