I just started learning Ext.net MVC and i m using Razor engine. i found out there is two different and equivalen syntaxes used in the .cshtml files. For example, in order to create a grid panel, we can use:
Syntax #1:
@(Html.X().GridPanel().Title("Grid"))
Or Syntax #2:
Ext.Net.GridPanel grid = new Ext.Net.GridPanel();
grid.Title = "Grid";
Whats's the name of each syntax? is there any way to translate the first code to the second one?