Reporter |
![]() |
---|---|
Created | Jan 26, 2012 7:05:46 PM |
Updated | Jan 26, 2012 7:05:46 PM |
Priority | Critical |
Type | Bug |
Fix versions | Next |
State | Open |
Assignee | Dmitry Osinovsky (Dmitry.Osinovsky) |
Subsystem | Refactoring |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
Default razor app. Move SimpleModel outside
@functions {public class SimpleModel { public SimpleModel(string foo, int i) {} } } @{ ViewBag.Title = "Home Page"; } <h2>@ViewBag.Message</h2> <p> To learn more about ASP.NET MVC visit <a href="http://asp.net/mvc" title="ASP.NET MVC Website">http://asp.net/mvc</a>. @Url.Action("SimpleModel", new SimpleModel ("foo", 12)) <br /> @Url.Action("ComplexModel", new ComplexModel(MyEnum.AAA,new SimpleModel ("foo", 12))) <br /> </p>