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.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using System.Xml.Linq; | |
namespace Nwazet.Commerce.Helpers { | |
public static class XmlHelper { | |
/// <summary> | |
/// Like Add, but chainable. |
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.Xml.Linq; | |
using NUnit.Framework; | |
using Nwazet.Commerce.Helpers; | |
namespace Nwazet.Commerce.Tests { | |
[TestFixture] | |
public class XmlHelperTests { | |
[Test] | |
public void StringToAttribute() { |
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.Linq.Expressions; | |
using System.Reflection; | |
namespace Bleroy.Helpers { | |
public static class NotNull { | |
public static TProp Get<TSource, TProp>(this TSource source, Expression<Func<TSource, TProp>> property) where TSource : class { | |
if (source == null) return default(TProp); | |
var current = property.Body; |
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
// Flasync Fluent Asynchronous API Helper (c) 2014 Bertrand Le Roy, under MIT. See LICENSE.txt for licensing details. | |
'use strict'; | |
/** | |
* @description | |
* This mix-in adds utility methods and infrastructure to an object | |
* to help build a fluent and asynchronous API. | |
* @param {object} thing The object to flasync. | |
*/ | |
function flasync(thing) { |
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
diff --git a/src/Orchard.Web/Modules/Orchard.Blogs/Controllers/BlogPostAdminController.cs b/src/Orchard.Web/Modules/Orchard.Blogs/Controllers/BlogPostAdminController.cs | |
--- a/src/Orchard.Web/Modules/Orchard.Blogs/Controllers/BlogPostAdminController.cs | |
+++ b/src/Orchard.Web/Modules/Orchard.Blogs/Controllers/BlogPostAdminController.cs | |
@@ -1,3 +1,4 @@ | |
+using System; | |
using System.Web.Mvc; | |
using Orchard.Blogs.Drivers; | |
using Orchard.Blogs.Extensions; | |
@@ -8,14 +9,18 @@ | |
using Orchard.Localization; |
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
diff --git a/src/Orchard.Web/Modules/Orchard.Blogs/Controllers/BlogPostAdminController.cs b/src/Orchard.Web/Modules/Orchard.Blogs/Controllers/BlogPostAdminController.cs | |
--- a/src/Orchard.Web/Modules/Orchard.Blogs/Controllers/BlogPostAdminController.cs | |
+++ b/src/Orchard.Web/Modules/Orchard.Blogs/Controllers/BlogPostAdminController.cs | |
@@ -13,6 +13,7 @@ | |
using Orchard.UI.Admin; | |
using Orchard.UI.Notify; | |
using Orchard.Extensions; | |
+using Orchard.Utility.Extensions; | |
namespace Orchard.Blogs.Controllers { |
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
Server Error in '/' Application. | |
Object reference not set to an instance of an object. | |
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. | |
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. | |
Source Error: |
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
Server Error in '/' Application. | |
Illegal characters in path. | |
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. | |
Exception Details: System.ArgumentException: Illegal characters in path. | |
Source Error: |
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
<?xml version="1.0" encoding="utf-8"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<version>1.0.0</version> | |
<title>Sample Product WebPI v2 RTW Feed</title> | |
<link href="http://www.contoso.com/SampleProductFeed.xml" /> | |
<updated>2009-9-29T16:30:00Z</updated> | |
<author> | |
<name>Sample Product Builder</name> | |
<uri>http://www.contoso.com</uri> |
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
diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Models/CommentRecord.cs b/src/Orchard.Web/Modules/Orchard.Comments/Models/CommentRecord.cs | |
--- a/src/Orchard.Web/Modules/Orchard.Comments/Models/CommentRecord.cs | |
+++ b/src/Orchard.Web/Modules/Orchard.Comments/Models/CommentRecord.cs | |
@@ -1,5 +1,6 @@ | |
using System; | |
using Orchard.ContentManagement.Records; | |
+using Orchard.Data.Conventions; | |
namespace Orchard.Comments.Models { | |
public class CommentRecord : ContentPartRecord { |
OlderNewer