From 3f6a044a383efebc9e29234db34075c93ab6f76c Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Fri, 10 Feb 2023 08:23:56 +0300 Subject: [PATCH] Set currency format to rub --- Views/Home/Index.cshtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers +@using System.Globalization; @{ Layout = "_Layout"; @@ -69,7 +70,7 @@
@bundle.Name
- @bundle.Price.ToString("c0") + @String.Format(new CultureInfo("ru-RU"), "{0:C0}", @bundle.Price)