@{
  Layout = "_Layout";
}

@using VendorOrderTracker.Models;

<h1>Vendors</h1>


    @if (@Model.Count == 0)
      {
        <div class="card bg-light mb-3">
          <div class="card-body">
        <h3>Please Add Vendors!</h3>
          </div>
        </div>
      } 



    @foreach (Vendor vendor in Model)
      {
        <div class="card bg-light mb-3">
          <div class="card-body">
            <h3><a href='/vendors/@vendor.Id'>@vendor.Name</a></h3>
            <h6>@vendor.Description</h6>
            <h6>@vendor.PhoneNumber</h6>
          </div>
      </div>
      }