﻿@model IEnumerable<Oogstplanner.Models.Crop>

@{
    ViewBag.Title = "Gewassen";
}
<div id="top"></div>

<div id="yearCalendar">
<h1>Dit zijn de gewassen in onze database:</h1>

<table class="table table-striped">
    <tr>
    	<th>Naam</th><th>Ras</th><th>Categorie</th><th>Opp. per 1</th>
    		<th>Opp. per zak</th><th>Prijs per zakje</th><th>Zaaimaanden</th><th>Oogstmaanden</th>
    </tr>
	<tbody>
		@foreach (var crop in Model) {
	    <tr>
	    	<td>@crop.Name</td><td>@crop.Race</td><td>@crop.Category</td><td>@crop.AreaPerCrop</td>
	    		<td>@crop.AreaPerBag</td><td>@crop.PricePerBag</td>
	    		<td>@crop.SowingMonths</td><td>@crop.HarvestingMonths</td>
	    </tr>
		}
	</tbody>	
</table>
    
</div>

@Html.ActionLink("Terug naar Zaaien en oogsten", "Index",  "Home",  null, null)
﻿@model IEnumerable<Crop>

@{
    ViewBag.Title = "Gewassen";
}
<div id="top"></div>

<div id="yearCalendar">
<h1>Dit zijn de gewassen in onze database:</h1>

<table class="table table-striped">
    <tr>
    	<th>Naam</th><th>Ras</th><th>Categorie</th><th>Opp. per 1</th>
    		<th>Opp. per zak</th><th>Prijs per zakje</th><th>Zaaimaanden</th><th>Oogstmaanden</th>
    </tr>
	<tbody>
		@foreach (var crop in Model) {
	    <tr>
	    	<td>@crop.Name</td><td>@crop.Race</td><td>@crop.Category</td><td>@crop.AreaPerCrop</td>
	    		<td>@crop.AreaPerBag</td><td>@crop.PricePerBag</td>
	    		<td>@crop.SowingMonths</td><td>@crop.HarvestingMonths</td>
	    </tr>
		}
	</tbody>	
</table>
    
</div>

@Html.ActionLink("Terug naar Zaaien en oogsten", "Index",  "Home",  null, null)
Change model reference with old namespace to new
Change model reference with old namespace to new
