@using Nop.Plugin.Misc.AuctionPlugin.Domains.Enums @using Nop.Web.Framework.TagHelpers.Shared @model ProductBidBoxViewModel @* @inject IJsonHelper JsonHelper; *@ @* @Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(myObj) as String) *@ @{ if (!Model.IsGuest) { var bgClass = Model.AuctionDto.ProductToAuctionDtos.FirstOrDefault().WinnerCustomerId == Model.CustomerId ? "bg-success" : "bg-primary"; bool bidButtonActive = Model.IsItemActive && (Model.AuctionDto.ProductToAuctionDtos.FirstOrDefault().WinnerCustomerId == Model.CustomerId && !Model.IsAdmin) ? true : false; string title = Model.AuctionDto.ProductToAuctionDtos.FirstOrDefault().WinnerCustomerId == Model.CustomerId ? "Your bid is leading" : "Place a bid!";

@title

Base Price: @($"{Model.BasePrice:c}") @* @(decimal?.Round(Model.BasePrice, 2, MidpointRounding.AwayFromZero)) *@
Bid Step: @($"{Model.LicitStep:c}")
@* *@
@* *@
if (Model.IsAdmin) {

Manage auction!

} else {

No access to admin level buttons

} } else {

This item is under auction!

Please log in or register to participate!

} }