This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace DotSee.Common | |
| { | |
| public static class CacheLiteralsCM | |
| { | |
| public static string CachedNodes => "cachednodesfor"; | |
| public static string CachedNode => "cachednodefor"; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class CdfPriority | |
| { | |
| public static int First => 1; | |
| public static int Medium => 10; | |
| public static int Last => 100; | |
| public static int LastOfLast => 9999; | |
| } | |
| public static class CdfGroup | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using Umbraco.Core; | |
| using Umbraco.Core.Cache; | |
| using Umbraco.Core.Composing; | |
| using Umbraco.Web; | |
| using Umbraco.Web.PublishedModels; | |
| using Umbraco.Web.Routing; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections.Generic; | |
| using System.Web.Mvc; | |
| using Umbraco.Core.Models.PublishedContent; | |
| using Umbraco.Web.Mvc; | |
| using Umbraco.Web.PublishedModels; | |
| using UmbracoMLCultureTest.Models; | |
| namespace UmbracoMLCultureTest.Controllers | |
| { | |
| public class Products2Controller : SurfaceController |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @inherits UmbracoViewPage<ContentModels.Products> | |
| @using ContentModels = Umbraco.Web.PublishedModels; | |
| @{ | |
| Layout = "master.cshtml"; | |
| } | |
| @Html.Partial("~/Views/Partials/SectionHeader.cshtml") | |
| <section class="section"> | |
| <div class="container"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @using UmbracoMLCultureTest.Models | |
| @inherits Umbraco.Web.Mvc.UmbracoViewPage<IEnumerable<ProductViewModel>> | |
| @foreach (ProductViewModel item in Model) | |
| { | |
| <a href="@item.Url" class="product-grid__item" style="background-image: url('@item.PhotoUrl')"> | |
| <div class="product-grid__item__overlay"> | |
| <div class="product-grid__item__name">@item.Name</div> | |
| <div class="product-grid__item__price">@item.DefaultCurrency @item.Price.ToString("F")</div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace UmbracoMLCultureTest.Models | |
| { | |
| public class ProductViewModel | |
| { | |
| public string Name { get; set; } | |
| public string PhotoUrl { get; set; } | |
| public string Url { get; set; } | |
| public decimal Price { get; set; } | |
| public string DefaultCurrency { get; set; } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections.Generic; | |
| using System.Globalization; | |
| using System.Web.Mvc; | |
| using Umbraco.Web.Mvc; | |
| using Umbraco.Web.PublishedModels; | |
| using UmbracoMLCultureTest.Models; | |
| namespace UmbracoMLCultureTest.Controllers | |
| { | |
| public class ProductsController : SurfaceController |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @inherits UmbracoViewPage<ContentModels.Products> | |
| @using ContentModels = Umbraco.Web.PublishedModels; | |
| @{ | |
| Layout = "master.cshtml"; | |
| } | |
| @Html.Partial("~/Views/Partials/SectionHeader.cshtml") | |
| <section class="section"> | |
| <div class="container"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Linq; | |
| using System.Linq.Expressions; | |
| using System.Reflection; | |
| using System.Text.RegularExpressions; | |
| using Moq; | |
| using Umbraco.Core.Models; | |
| using Umbraco.Core.Models.PublishedContent; | |
| using Umbraco.Web; | |
| using Umbraco.ModelsBuilder; |