﻿@model Unit

<div>@Html.ActionLink(Model.Name, "Index", "Soldiers", new { unit = Model.Id })</div>
﻿@model Unit

@if (Model != null)
{
    <div>@Html.ActionLink(Model.Name, "Index", "Soldiers", new { unit = Model.Id })</div>
}
Make sure unit isn't null
Make sure unit isn't null
