Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Invalid Xml documentation comment
support7ff43b4604f1
diff --git a/src/Business/Grand.Business.Common/Utilities/PowerExcelExtensions.cs b/src/Business/Grand.Business.Common/Utilities/PowerExcelExtensions.csindex eb5ab0cbd..309b6e60d 100644--- a/src/Business/Grand.Business.Common/Utilities/PowerExcelExtensions.cs+++ b/src/Business/Grand.Business.Common/Utilities/PowerExcelExtensions.cs@@ -64,6 +64,7 @@ namespace Grand.Business.Common.Utilities/// <summary>/// Sets the property of the specified object to the specified value./// </summary>+ /// <param name="columnInfo"></param>/// <param name="o">The object whose property to set.</param>/// <param name="val">The value.</param>/// <param name="cell">The cell where the value originates from.</param>diff --git a/src/Business/Grand.Business.Core/Interfaces/Storage/IFileStore.cs b/src/Business/Grand.Business.Core/Interfaces/Storage/IFileStore.csindex 136bca181..c58738ed7 100644--- a/src/Business/Grand.Business.Core/Interfaces/Storage/IFileStore.cs+++ b/src/Business/Grand.Business.Core/Interfaces/Storage/IFileStore.cs@@ -126,7 +126,7 @@ namespace Grand.Business.Core.Interfaces.Storage/// Write text to file/// </summary>/// <param name="path"></param>- /// <param text=text></param>+ /// <param name="text"></param>/// <returns></returns>Task WriteAllText(string path, string text);}diff --git a/src/Core/Grand.Data/IRepository.cs b/src/Core/Grand.Data/IRepository.csindex 4552b3ba2..7e07051f2 100644--- a/src/Core/Grand.Data/IRepository.cs+++ b/src/Core/Grand.Data/IRepository.cs@@ -114,7 +114,6 @@ namespace Grand.Data/// Update subdocument/// </summary>/// <typeparam name="U">Document</typeparam>- /// <typeparam name="Z">Subdocuments</typeparam>/// <param name="id">Ident of entitie</param>/// <param name="field"></param>/// <param name="elemFieldMatch">Subdocument field to match</param>@@ -126,8 +125,7 @@ namespace Grand.Data/// Update subdocuments/// </summary>/// <typeparam name="T">Document</typeparam>- /// <typeparam name="Z">Subdocuments</typeparam>- /// <param name="id">Ident of entitie</param>+ /// <typeparam name="U"></typeparam>/// <param name="field"></param>/// <param name="elemFieldMatch">Subdocument field to match</param>/// <param name="value">Subdocument - to update (all values)</param>diff --git a/src/Core/Grand.Data/LiteDb/LiteDBRepository.cs b/src/Core/Grand.Data/LiteDb/LiteDBRepository.csindex 60db24849..dc3640d6f 100644--- a/src/Core/Grand.Data/LiteDb/LiteDBRepository.cs+++ b/src/Core/Grand.Data/LiteDb/LiteDBRepository.cs@@ -317,7 +317,6 @@ namespace Grand.Data.LiteDb/// <param name="id">Ident of entitie</param>/// <param name="field"></param>/// <param name="elemFieldMatch">Subdocument field to match</param>- /// <param name="elemMatch">Subdocument ident value</param>/// <param name="value">Subdocument - to update (all values)</param>public virtual Task UpdateToSet<U>(string id, Expression<Func<T, IEnumerable<U>>> field, Expression<Func<U, bool>> elemFieldMatch, U value){@@ -351,16 +350,15 @@ namespace Grand.Data.LiteDbreturn Task.CompletedTask;}+/// <summary>/// Update subdocuments/// </summary>/// <typeparam name="T">Document</typeparam>- /// <typeparam name="Z">Subdocuments</typeparam>- /// <param name="id">Ident of entitie</param>+ /// <typeparam name="U"></typeparam>/// <param name="field"></param>/// <param name="elemFieldMatch">Subdocument field to match</param>/// <param name="value">Subdocument - to update (all values)</param>- /// <param name="updateMany">Update many records</param>/// <returns></returns>public virtual Task UpdateToSet<U>(Expression<Func<T, IEnumerable<U>>> field, U elemFieldMatch, U value){diff --git a/src/Core/Grand.Data/Mongo/MongoRepository.cs b/src/Core/Grand.Data/Mongo/MongoRepository.csindex 3e0b14cb3..4ea918eaa 100644--- a/src/Core/Grand.Data/Mongo/MongoRepository.cs+++ b/src/Core/Grand.Data/Mongo/MongoRepository.cs@@ -276,7 +276,6 @@ namespace Grand.Data.Mongo/// <param name="id">Ident of entitie</param>/// <param name="field"></param>/// <param name="elemFieldMatch">Subdocument field to match</param>- /// <param name="elemMatch">Subdocument ident value</param>/// <param name="value">Subdocument - to update (all values)</param>public virtual async Task UpdateToSet<U>(string id, Expression<Func<T, IEnumerable<U>>> field,Expression<Func<U, bool>> elemFieldMatch, U value)@@ -307,12 +306,10 @@ namespace Grand.Data.Mongo/// Update subdocuments/// </summary>/// <typeparam name="T">Document</typeparam>- /// <typeparam name="Z">Subdocuments</typeparam>- /// <param name="id">Ident of entitie</param>+ /// <typeparam name="U"></typeparam>/// <param name="field"></param>/// <param name="elemFieldMatch">Subdocument field to match</param>/// <param name="value">Subdocument - to update (all values)</param>- /// <param name="updateMany">Update many records</param>/// <returns></returns>public virtual async Task UpdateToSet<U>(Expression<Func<T, IEnumerable<U>>> field, U elemFieldMatch, U value){diff --git a/src/Core/Grand.Domain/Catalog/ProductExtensions.cs b/src/Core/Grand.Domain/Catalog/ProductExtensions.csindex ed1ee102d..0efc4d823 100644--- a/src/Core/Grand.Domain/Catalog/ProductExtensions.cs+++ b/src/Core/Grand.Domain/Catalog/ProductExtensions.cs@@ -9,13 +9,13 @@ namespace Grand.Domain.Catalog/// </summary>public static class ProductExtensions{-/// <summary>/// Used to get an appropriate tier price/// </summary>/// <param name="product">Product</param>/// <param name="customer">Customer</param>/// <param name="storeId">Store id</param>+ /// <param name="currencyCode"></param>/// <param name="quantity">Quantity</param>/// <returns>Price</returns>public static TierPrice GetPreferredTierPrice(this Product product, Customer customer, string storeId, string currencyCode, int quantity)@@ -39,7 +39,7 @@ namespace Grand.Domain.Catalog/// Check if product tag exists/// </summary>/// <param name="product">Product</param>- /// <param name="productTagId">Product tag id</param>+ /// <param name="productTagName"></param>/// <returns>Result</returns>public static bool ProductTagExists(this Product product,string productTagName)@@ -85,7 +85,6 @@ namespace Grand.Domain.Catalog/// </summary>/// <param name="product">Product</param>/// <param name="attributes">Attributes</param>- /// <param name="productAttributeParser">Product attribute service</param>/// <param name="sku">SKU</param>/// <param name="mpn">MPN</param>/// <param name="gtin">GTIN</param>@@ -140,6 +139,7 @@ namespace Grand.Domain.Catalog/// <summary>/// Gets selected product attribute mappings/// </summary>+ /// <param name="product"></param>/// <param name="customAttributes">Attributes</param>/// <returns>Selected product attribute mappings</returns>public static IList<ProductAttributeMapping> ParseProductAttributeMappings(this Product product, IList<CustomAttribute> customAttributes)@@ -150,7 +150,7 @@ namespace Grand.Domain.Catalogforeach (var customAttribute in customAttributes.GroupBy(x => x.Key)){- var attribute = product.ProductAttributeMappings.Where(x => x.Id == customAttribute.Key).FirstOrDefault();+ var attribute = product.ProductAttributeMappings.FirstOrDefault(x => x.Id == customAttribute.Key);if (attribute != null){result.Add(attribute);@@ -162,6 +162,7 @@ namespace Grand.Domain.Catalog/// <summary>/// Get product attribute values/// </summary>+ /// <param name="product"></param>/// <param name="customAttributes">Attributes</param>/// <returns>Product attribute values</returns>public static IList<ProductAttributeValue> ParseProductAttributeValues(this Product product, IList<CustomAttribute> customAttributes)@@ -183,7 +184,7 @@ namespace Grand.Domain.Catalog{if (attribute.ProductAttributeValues.Where(x => x.Id == valueStr).Count() > 0){- var value = attribute.ProductAttributeValues.Where(x => x.Id == valueStr).FirstOrDefault();+ var value = attribute.ProductAttributeValues.FirstOrDefault(x => x.Id == valueStr);if (value != null){values.Add(value);@@ -214,7 +215,7 @@ namespace Grand.Domain.Catalog/// <summary>/// Adds an attribute/// </summary>- /// <param name="attributes">Attributes</param>+ /// <param name="customAttributes"></param>/// <param name="productAttributeMapping">Product attribute mapping</param>/// <param name="value">Value</param>/// <returns>Attributes</returns>@@ -227,19 +228,22 @@ namespace Grand.Domain.Catalogreturn customAttributes;}+/// <summary>/// Remove an attribute/// </summary>- /// <param name="attributes">Attributes</param>+ /// <param name="customAttributes"></param>/// <param name="productAttributeMapping">Product attribute mapping</param>/// <returns>Updated result (XML format)</returns>public static IList<CustomAttribute> RemoveProductAttribute(IList<CustomAttribute> customAttributes, ProductAttributeMapping productAttributeMapping){return customAttributes.Where(x => x.Key != productAttributeMapping.Id).ToList();}+/// <summary>/// Are attributes equal/// </summary>+ /// <param name="product"></param>/// <param name="customAttributes1">The attributes of the first product</param>/// <param name="customAttributes2">The attributes of the second product</param>/// <param name="ignoreNonCombinableAttributes">A value indicating whether we should ignore non-combinable attributes</param>@@ -315,6 +319,7 @@ namespace Grand.Domain.Catalog/// <summary>/// Check whether condition of some attribute is met (if specified). Return "null" if not condition is specified/// </summary>+ /// <param name="product"></param>/// <param name="pam">Product attribute</param>/// <param name="selectedAttributes">Selected attributes</param>/// <returns>Result</returns>@@ -423,7 +428,6 @@ namespace Grand.Domain.Catalog/// </summary>/// <param name="product">Product</param>/// <param name="attributes">Attributes</param>- /// <param name="productAttributeParser">Product attribute service</param>/// <returns>GTIN</returns>public static string FormatGtin(this Product product, IList<CustomAttribute> attributes = null){diff --git a/src/Core/Grand.Domain/Customers/CustomerExtensions.cs b/src/Core/Grand.Domain/Customers/CustomerExtensions.csindex 59686f7f1..8fc3ed4d8 100644--- a/src/Core/Grand.Domain/Customers/CustomerExtensions.cs+++ b/src/Core/Grand.Domain/Customers/CustomerExtensions.cs@@ -83,10 +83,12 @@ namespace Grand.Domain.Customers}return fullName;}+/// <summary>/// Formats the customer name/// </summary>/// <param name="customer">Source</param>+ /// <param name="customerNameFormat"></param>/// <returns>Formatted text</returns>public static string FormatUserName(this Customer customer, CustomerNameFormat customerNameFormat){@@ -143,6 +145,7 @@ namespace Grand.Domain.Customers/// Adds a coupon code/// </summary>/// <param name="customer">Customer</param>+ /// <param name="key"></param>/// <param name="couponCode">Coupon code</param>/// <returns>New coupon codes document</returns>public static string ApplyCouponCode(this Customer customer, string key, string couponCode)@@ -176,10 +179,12 @@ namespace Grand.Domain.Customerscoupons.AddRange(couponCodes.ToList());return string.Join(CouponSeparator, coupons.Distinct());}+/// <summary>/// Adds a coupon code/// </summary>/// <param name="customer">Customer</param>+ /// <param name="key"></param>/// <param name="couponCode">Coupon code</param>/// <returns>New coupon codes document</returns>public static string RemoveCouponCode(this Customer customer, string key, string couponCode)diff --git a/src/Web/Grand.Web.Common/Filters/CustomerActivityAttribute.cs b/src/Web/Grand.Web.Common/Filters/CustomerActivityAttribute.csindex 653a1e4d5..766a615e0 100644--- a/src/Web/Grand.Web.Common/Filters/CustomerActivityAttribute.cs+++ b/src/Web/Grand.Web.Common/Filters/CustomerActivityAttribute.cs@@ -62,6 +62,7 @@ namespace Grand.Web.Common.Filters/// Called before the action executes, after model binding is complete/// </summary>/// <param name="context">A context for action filters</param>+ /// <param name="next"></param>public async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next){await next();