Created
December 2, 2013 12:35
-
-
Save stofte/7748834 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public ActionResult Bar() | |
{ | |
return View(); | |
} | |
public ActionResult _Bar() | |
{ | |
var businessunits = Map2BusinessUnitCollection(UnityFactory.Instance.Resolve<IBusinessUnitService>().GetBusinessUnits()); | |
var teams = Map2TeamViewModelCollection(UnityFactory.Instance.Resolve<ITeamService>().GetTeams()); | |
var model = new IndexViewModel | |
{ | |
Guide = new GuideModel | |
{ | |
Pages = new List<GuidePageModel>(){ | |
new GuidePageModel { | |
Id = 0, | |
Validate = true, | |
Title = "1st page", | |
}, | |
new GuidePageModel { | |
Id = 1, | |
Validate = true, | |
Title = "Dependant on 1st page", | |
}, | |
new GuidePageModel { | |
Id = 2, | |
Validate = true, | |
Title = "KO User", | |
}, | |
new GuidePageModel { | |
Id = 3, | |
Title = "Profil", | |
} | |
}, | |
}, | |
Page1 = new Models.Guide.Page1.PostModel | |
{ | |
}, | |
Page2 = new Models.Guide.Page2.PostModel | |
{ | |
}, | |
Page3 = new UserViewModel | |
{ | |
PostModel = new UserPostModel | |
{ | |
Givenname = "John", | |
Surname = "Doe", | |
Notify = true, | |
}, | |
BusinessUnits = businessunits, | |
Teams = teams, | |
}, | |
Page4 = new ProfileViewModel | |
{ | |
PostModel = new ProfilePostModel | |
{ | |
StartDate = DateTime.Today, | |
} | |
} | |
}; | |
return View(model); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment