This file contains 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
private IEnumerable<RewardDescription> ApplyDiscounts(ICart cart) | |
{ | |
IOrderForm orderForm = cart.GetFirstForm(); | |
if (orderForm == null) | |
{ | |
return new List<RewardDescription>(); | |
} | |
This file contains 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.ComponentModel.DataAnnotations; | |
using EPiServer.Commerce.Catalog.ContentTypes; | |
using EPiServer.Commerce.Marketing; | |
using EPiServer.Commerce.Marketing.DataAnnotations; | |
using EPiServer.Commerce.Marketing.Promotions; | |
using EPiServer.Core; | |
using EPiServer.DataAnnotations; |
This file contains 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 class FindExceptionInterceptor : IInterceptor | |
{ | |
public void Intercept(IInvocation invocation) | |
{ | |
try | |
{ | |
invocation.Proceed(); | |
} | |
catch (ClientException) | |
{ |
This file contains 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 EPiServer.Reference.Commerce.Site.Features.Shared.Services | |
{ | |
using System.Collections.Generic; | |
using System.Linq; | |
using EPiServer.Commerce.Catalog.ContentTypes; | |
using EPiServer.Commerce.Order; | |
using EPiServer.Commerce.Order.Calculator; | |
using EPiServer.Commerce.Order.Internal; |
This file contains 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 class CommentViewModel | |
{ | |
/// <summary>Gets the body content of the comment.</summary> | |
[Remote("IsSafeTextContent", "ModeratorValidation")] | |
public virtual string Body { get; set; } | |
} |
This file contains 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.Linq; | |
using EPiServer.Commerce.Order; | |
using Mediachase.Commerce.Orders; | |
using Mediachase.Commerce.Workflow.Activities; | |
using Mediachase.Commerce.WorkflowCompatibility; | |
public class ExtendedValidateLineItemsActivity : ValidateLineItemsActivity | |
{ |
This file contains 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
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="FormContainerBlockControl.ascx.cs" Inherits="EPiServerWebForms.Views.Blocks.FormContainerBlockControl" %> | |
<%@ Import Namespace="EPiServerWebForms.Business.MvcHelpers" %> | |
<% MvcUtility.RenderPartial("FormsContentArea", this.FakeArea, this.FakeContext); %> |
This file contains 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 class DummyController : Controller | |
{ | |
public ActionResult Index() | |
{ | |
// Create an empty Razor view called PartialRender.cshtml in views\shared | |
return this.PartialView("PartialRender"); | |
} | |
} |
This file contains 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
/// <summary> | |
/// Class PromotionExtensions. | |
/// </summary> | |
/// <author>Jeroen Stemerdink</author> | |
public static class PromotionExtensions | |
{ | |
/// <summary> | |
/// The <see cref="ILogger" /> instance | |
/// </summary> | |
private static readonly ILogger Log = LogManager.GetLogger(); |
This file contains 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 EPiServer | |
@using EPiServer.Commerce.Catalog.ContentTypes | |
@using EPiServer.Commerce.Marketing | |
@using EPiServer.Commerce.Marketing.Internal | |
@using EPiServer.Commerce.Marketing.Promotions | |
@using EPiServer.Framework.Localization | |
@using EPiServer.Reference.Commerce.Site.Features.Product.Models | |
@using EPiServer.Reference.Commerce.Site.Features.Product.Services | |
@using EPiServer.Reference.Commerce.Site.Features.Search.Models | |
@using EPiServer.Reference.Commerce.Site.Features.Search.Services |