@using Bookstore.Domain.Offers; @using Bookstore.Domain; @model Bookstore.Web.Areas.Admin.Models.Offers.OfferIndexViewModel @{ ViewData["Title"] = "Offers"; } @await Html.PartialAsync("_MessageBanner")
Offers
@await Html.PartialAsync("_Paginator", Model)
@foreach (var offer in Model.Items) { }
Customer Book Name Author Genre Condition Price Offer date Status
@offer.CustomerName @offer.BookName @offer.Author @offer.Genre @offer.Condition @offer.OfferPrice.ToString("C") @offer.OfferDate.ToShortDateString() @offer.OfferStatus.GetDescription()
@switch (offer.OfferStatus) { case OfferStatus.PendingApproval:
break; case OfferStatus.Approved: break; case OfferStatus.Received: break; }