Ah needed to add reference in the class project to MVC

It was not the sample project giving the issue but it was the class