0
0

Set currency format to rub

This commit is contained in:
Sergey Chebotar 2023-02-10 08:23:56 +03:00
parent f6232219fe
commit 3f6a044a38

View File

@ -1,5 +1,6 @@
@model IQueryable<MyDarling.Models.UnderwearBundle>;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@using System.Globalization;
@{
Layout = "_Layout";
@ -69,7 +70,7 @@
<div class="card-body p-4">
<div class="text-center">
<h5 class="fw-bolder">@bundle.Name</h5>
@bundle.Price.ToString("c0")
@String.Format(new CultureInfo("ru-RU"), "{0:C0}", @bundle.Price)
</div>
</div>
</div>