move model declaration outside of code block

This commit is contained in:
Lee Dumond 2019-04-18 10:34:08 -05:00
parent cd662d9105
commit e781d00419
2 changed files with 28 additions and 24 deletions

View File

@ -1,6 +1,8 @@
@model CampaignItem
@{ @{
ViewData["Title"] = "Campaign details"; ViewData["Title"] = "Campaign details";
@model CampaignItem
var headerList= new List<Header>() { var headerList= new List<Header>() {
new Header() { Controller = "Catalog", Text = "Back to catalog" }, new Header() { Controller = "Catalog", Text = "Back to catalog" },
new Header() { Controller = "Campaigns", Text = "Back to Campaigns" } }; new Header() { Controller = "Campaigns", Text = "Back to Campaigns" } };

View File

@ -1,6 +1,8 @@
@model WebMVC.ViewModels.CampaignViewModel
@{ @{
ViewData["Title"] = "Campaigns"; ViewData["Title"] = "Campaigns";
@model WebMVC.ViewModels.CampaignViewModel
var headerList= new List<Header>() { var headerList= new List<Header>() {
new Header() { Controller = "Catalog", Text = "Back to catalog" } }; new Header() { Controller = "Catalog", Text = "Back to catalog" } };
} }