summaryrefslogtreecommitdiff
path: root/Views/Home
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2023-02-10 08:23:56 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2023-02-10 08:23:56 +0300
commit3f6a044a383efebc9e29234db34075c93ab6f76c (patch)
tree2ec7ca5259f7c833691ad51a5fb67bcd00b0fd9b /Views/Home
parentf6232219feb0c1d1110b5a05d7c2617b236dcf09 (diff)
Set currency format to rub
Diffstat (limited to 'Views/Home')
-rw-r--r--Views/Home/Index.cshtml3
1 files changed, 2 insertions, 1 deletions
diff --git a/Views/Home/Index.cshtml b/Views/Home/Index.cshtml
index 574c54b..64fecfa 100644
--- a/Views/Home/Index.cshtml
+++ b/Views/Home/Index.cshtml
@@ -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>