Refactor method to explicit helper. Fixes #253

- change method name to be more explicit about method role
- update method use in controller

#253
This commit is contained in:
Peter Blazejewicz 2015-01-12 20:58:42 +01:00
parent 80d9fb4781
commit 36073fff3c
1 changed files with 2 additions and 2 deletions

View File

@ -7,10 +7,10 @@ namespace MvcSample.Web
{
public IActionResult Index()
{
return View(User());
return View(CreateUser());
}
public User User()
public User CreateUser()
{
User user = new User()
{