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:
parent
80d9fb4781
commit
36073fff3c
|
|
@ -7,10 +7,10 @@ namespace MvcSample.Web
|
||||||
{
|
{
|
||||||
public IActionResult Index()
|
public IActionResult Index()
|
||||||
{
|
{
|
||||||
return View(User());
|
return View(CreateUser());
|
||||||
}
|
}
|
||||||
|
|
||||||
public User User()
|
public User CreateUser()
|
||||||
{
|
{
|
||||||
User user = new User()
|
User user = new User()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue