Razor is not a new programming language itself, but uses C# syntax for embedding code in a page without the ASP.NET delimiters: <%= %>. It is a simple-syntax view engine and was released as part of ASP.NET MVC 3. The Razor file extension is “cshtml” for the C# language. Let’s see how to pass data to views in asp.net mvc works.
PASSSING DATA TO VIEWS IN ASP.NET MVC