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
Remove redundant empty class declaration
KrzysztofPajakfbabb16431ee
diff --git a/src/Business/Grand.Business.Core/Commands/Checkout/Orders/PlaceOrderCommand.cs b/src/Business/Grand.Business.Core/Commands/Checkout/Orders/PlaceOrderCommand.csindex dfa3e2f12..53aac17b8 100644--- a/src/Business/Grand.Business.Core/Commands/Checkout/Orders/PlaceOrderCommand.cs+++ b/src/Business/Grand.Business.Core/Commands/Checkout/Orders/PlaceOrderCommand.cs@@ -3,6 +3,4 @@ using MediatR;namespace Grand.Business.Core.Commands.Checkout.Orders;-public class PlaceOrderCommand : IRequest<PlaceOrderResult>-{-}\ No newline at end of file+public class PlaceOrderCommand : IRequest<PlaceOrderResult>;\ No newline at end of filediff --git a/src/Business/Grand.Business.Core/Commands/Checkout/Orders/PrepareOrderCodeCommand.cs b/src/Business/Grand.Business.Core/Commands/Checkout/Orders/PrepareOrderCodeCommand.csindex 805131016..9858f4045 100644--- a/src/Business/Grand.Business.Core/Commands/Checkout/Orders/PrepareOrderCodeCommand.cs+++ b/src/Business/Grand.Business.Core/Commands/Checkout/Orders/PrepareOrderCodeCommand.cs@@ -2,6 +2,4 @@namespace Grand.Business.Core.Commands.Checkout.Orders;-public class PrepareOrderCodeCommand : IRequest<string>-{-}\ No newline at end of file+public class PrepareOrderCodeCommand : IRequest<string>;\ No newline at end of filediff --git a/src/Business/Grand.Business.Core/Commands/System/Common/ClearMostViewedCommand.cs b/src/Business/Grand.Business.Core/Commands/System/Common/ClearMostViewedCommand.csindex 6d2bf8516..22a3cb029 100644--- a/src/Business/Grand.Business.Core/Commands/System/Common/ClearMostViewedCommand.cs+++ b/src/Business/Grand.Business.Core/Commands/System/Common/ClearMostViewedCommand.cs@@ -2,6 +2,4 @@namespace Grand.Business.Core.Commands.System.Common;-public class ClearMostViewedCommand : IRequest<bool>-{-}\ No newline at end of file+public class ClearMostViewedCommand : IRequest<bool>;\ No newline at end of filediff --git a/src/Business/Grand.Business.Core/Interfaces/Storage/IMediaFileStore.cs b/src/Business/Grand.Business.Core/Interfaces/Storage/IMediaFileStore.csindex edb0a9287..b5eaad520 100644--- a/src/Business/Grand.Business.Core/Interfaces/Storage/IMediaFileStore.cs+++ b/src/Business/Grand.Business.Core/Interfaces/Storage/IMediaFileStore.cs@@ -5,6 +5,4 @@ namespace Grand.Business.Core.Interfaces.Storage;/// <summary>/// Represents an abstraction over a specialized file store for storing media and service it to clients./// </summary>-public interface IMediaFileStore : IFileStore-{-}\ No newline at end of file+public interface IMediaFileStore : IFileStore;\ No newline at end of filediff --git a/src/Core/Grand.Domain/Configuration/ISettings.cs b/src/Core/Grand.Domain/Configuration/ISettings.csindex 3993c9eaf..3139de389 100644--- a/src/Core/Grand.Domain/Configuration/ISettings.cs+++ b/src/Core/Grand.Domain/Configuration/ISettings.cs@@ -3,6 +3,4 @@/// <summary>/// Setting interface/// </summary>-public interface ISettings-{-}\ No newline at end of file+public interface ISettings;\ No newline at end of filediff --git a/src/Core/Grand.Domain/History/IHistory.cs b/src/Core/Grand.Domain/History/IHistory.csindex dada08272..02292946e 100644--- a/src/Core/Grand.Domain/History/IHistory.cs+++ b/src/Core/Grand.Domain/History/IHistory.cs@@ -3,6 +3,4 @@/// <summary>/// Interface for History of changes object/// </summary>-public interface IHistory-{-}\ No newline at end of file+public interface IHistory;\ No newline at end of filediff --git a/src/Core/Grand.Domain/SubBaseEntity.cs b/src/Core/Grand.Domain/SubBaseEntity.csindex b3faa20c7..c67df351f 100644--- a/src/Core/Grand.Domain/SubBaseEntity.cs+++ b/src/Core/Grand.Domain/SubBaseEntity.cs@@ -1,5 +1,3 @@namespace Grand.Domain;-public abstract class SubBaseEntity : ParentEntity-{-}\ No newline at end of file+public abstract class SubBaseEntity : ParentEntity;\ No newline at end of filediff --git a/src/Core/Grand.SharedKernel/Attributes/ApiControllerAttribute.cs b/src/Core/Grand.SharedKernel/Attributes/ApiControllerAttribute.csindex 1b0e1024d..6a6d6f010 100644--- a/src/Core/Grand.SharedKernel/Attributes/ApiControllerAttribute.cs+++ b/src/Core/Grand.SharedKernel/Attributes/ApiControllerAttribute.cs@@ -1,6 +1,4 @@namespace Grand.SharedKernel.Attributes;[AttributeUsage(AttributeTargets.Class)]-public class ApiControllerAttribute : Attribute-{-}\ No newline at end of file+public class ApiControllerAttribute : Attribute;\ No newline at end of filediff --git a/src/Core/Grand.SharedKernel/Attributes/IgnoreApiAttribute.cs b/src/Core/Grand.SharedKernel/Attributes/IgnoreApiAttribute.csindex e18f3568c..eb60b275f 100644--- a/src/Core/Grand.SharedKernel/Attributes/IgnoreApiAttribute.cs+++ b/src/Core/Grand.SharedKernel/Attributes/IgnoreApiAttribute.cs@@ -1,11 +1,7 @@namespace Grand.SharedKernel.Attributes;[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Property)]-public class IgnoreApiAttribute : Attribute-{-}+public class IgnoreApiAttribute : Attribute;[AttributeUsage(AttributeTargets.Property)]-public class IgnoreApiUrlAttribute : Attribute-{-}\ No newline at end of file+public class IgnoreApiUrlAttribute : Attribute;\ No newline at end of filediff --git a/src/Plugins/ExchangeRate.McExchange/McExchangeRatePlugin.cs b/src/Plugins/ExchangeRate.McExchange/McExchangeRatePlugin.csindex 6d5f62161..dbd7fb336 100644--- a/src/Plugins/ExchangeRate.McExchange/McExchangeRatePlugin.cs+++ b/src/Plugins/ExchangeRate.McExchange/McExchangeRatePlugin.cs@@ -5,6 +5,4 @@ using System.Runtime.CompilerServices;namespace ExchangeRate.McExchange;-public class McExchangeRatePlugin : BasePlugin-{-}\ No newline at end of file+public class McExchangeRatePlugin : BasePlugin;\ No newline at end of filediff --git a/src/Plugins/Theme.Modern/ModernThemePlugin.cs b/src/Plugins/Theme.Modern/ModernThemePlugin.csindex f64af32ac..285d7fe36 100644--- a/src/Plugins/Theme.Modern/ModernThemePlugin.cs+++ b/src/Plugins/Theme.Modern/ModernThemePlugin.cs@@ -5,6 +5,4 @@ namespace Theme.Modern;/// <summary>/// Plugin/// </summary>-public class MinimalThemePlugin : BasePlugin, IPlugin-{-}\ No newline at end of file+public class MinimalThemePlugin : BasePlugin, IPlugin;\ No newline at end of filediff --git a/src/Tests/Grand.Business.Common.Tests/Extensions/TranslateExtensionsTests.cs b/src/Tests/Grand.Business.Common.Tests/Extensions/TranslateExtensionsTests.csindex 8b55eef9d..c10c5cb96 100644--- a/src/Tests/Grand.Business.Common.Tests/Extensions/TranslateExtensionsTests.cs+++ b/src/Tests/Grand.Business.Common.Tests/Extensions/TranslateExtensionsTests.cs@@ -92,7 +92,5 @@ public class TranslateExtensionsTestsrecord.GetTranslationPermissionName(translationServiceMock.Object, "PL"));}- private struct FakeStruct- {- }+ private struct FakeStruct;}\ No newline at end of filediff --git a/src/Web/Grand.Web.Admin/Models/Catalog/ProductModel.cs b/src/Web/Grand.Web.Admin/Models/Catalog/ProductModel.csindex bf801cb44..ee8fb8480 100644--- a/src/Web/Grand.Web.Admin/Models/Catalog/ProductModel.cs+++ b/src/Web/Grand.Web.Admin/Models/Catalog/ProductModel.cs@@ -442,9 +442,7 @@ public class ProductModel : BaseEntityModel, ILocalizedModel<ProductLocalizedModpublic IList<SelectListItem> AvailableProductTypes { get; set; } = new List<SelectListItem>();}- public class AddRequiredProductModel : AddProductModel- {- }+ public class AddRequiredProductModel : AddProductModel;public class AddProductSpecificationAttributeModel : BaseModel{diff --git a/src/Web/Grand.Web.Admin/Models/Home/DashboardModel.cs b/src/Web/Grand.Web.Admin/Models/Home/DashboardModel.csindex 7c07450f0..53bdfc378 100644--- a/src/Web/Grand.Web.Admin/Models/Home/DashboardModel.cs+++ b/src/Web/Grand.Web.Admin/Models/Home/DashboardModel.cs@@ -2,9 +2,7 @@namespace Grand.Web.Admin.Models.Home;-public class DashboardModel : BaseModel-{-}+public class DashboardModel : BaseModel;public class DashboardActivityModel : BaseModel{diff --git a/src/Web/Grand.Web.Common/Controllers/BaseAdminPluginController.cs b/src/Web/Grand.Web.Common/Controllers/BaseAdminPluginController.csindex 2a32183d0..46955fd7d 100644--- a/src/Web/Grand.Web.Common/Controllers/BaseAdminPluginController.cs+++ b/src/Web/Grand.Web.Common/Controllers/BaseAdminPluginController.cs@@ -9,6 +9,4 @@ namespace Grand.Web.Common.Controllers;[AuthorizeAdmin][Area("Admin")][AuthorizeMenu]-public abstract class BaseAdminPluginController : BaseController-{-}\ No newline at end of file+public abstract class BaseAdminPluginController : BaseController;\ No newline at end of filediff --git a/src/Web/Grand.Web.Common/Controllers/BasePaymentController.cs b/src/Web/Grand.Web.Common/Controllers/BasePaymentController.csindex b918589aa..a4095a0e6 100644--- a/src/Web/Grand.Web.Common/Controllers/BasePaymentController.cs+++ b/src/Web/Grand.Web.Common/Controllers/BasePaymentController.cs@@ -3,6 +3,4 @@/// <summary>/// Base controller for payment plugins/// </summary>-public abstract class BasePaymentController : BasePluginController-{-}\ No newline at end of file+public abstract class BasePaymentController : BasePluginController;\ No newline at end of filediff --git a/src/Web/Grand.Web.Common/Controllers/BasePluginController.cs b/src/Web/Grand.Web.Common/Controllers/BasePluginController.csindex 84fa5c7e3..cf06d0a6a 100644--- a/src/Web/Grand.Web.Common/Controllers/BasePluginController.cs+++ b/src/Web/Grand.Web.Common/Controllers/BasePluginController.cs@@ -3,6 +3,4 @@/// <summary>/// Base controller for plugins/// </summary>-public abstract class BasePluginController : BaseController-{-}\ No newline at end of file+public abstract class BasePluginController : BaseController;\ No newline at end of filediff --git a/src/Web/Grand.Web.Common/Controllers/BaseShippingController.cs b/src/Web/Grand.Web.Common/Controllers/BaseShippingController.csindex f16503ea3..1ff869349 100644--- a/src/Web/Grand.Web.Common/Controllers/BaseShippingController.cs+++ b/src/Web/Grand.Web.Common/Controllers/BaseShippingController.cs@@ -1,5 +1,3 @@namespace Grand.Web.Common.Controllers;-public abstract class BaseShippingController : BasePluginController-{-}\ No newline at end of file+public abstract class BaseShippingController : BasePluginController;\ No newline at end of filediff --git a/src/Web/Grand.Web.Common/Models/ILocalizedModel.cs b/src/Web/Grand.Web.Common/Models/ILocalizedModel.csindex b865b67ef..5db5c05d0 100644--- a/src/Web/Grand.Web.Common/Models/ILocalizedModel.cs+++ b/src/Web/Grand.Web.Common/Models/ILocalizedModel.cs@@ -2,9 +2,7 @@namespace Grand.Web.Common.Models;-public interface ILocalizedModel-{-}+public interface ILocalizedModel;public interface ILocalizedModel<TLocalizedModel> : ILocalizedModel{diff --git a/src/Web/Grand.Web.Common/Page/Paging/IPageableModel.cs b/src/Web/Grand.Web.Common/Page/Paging/IPageableModel.csindex 3e60774df..5d7bd268e 100644--- a/src/Web/Grand.Web.Common/Page/Paging/IPageableModel.cs+++ b/src/Web/Grand.Web.Common/Page/Paging/IPageableModel.cs@@ -64,6 +64,4 @@ public interface IPageableModel/// Generic form of <see cref="IPageableModel" />/// </summary>/// <typeparam name="T">Type of object being paged</typeparam>-public interface IPagination<T> : IPageableModel-{-}\ No newline at end of file+public interface IPagination<T> : IPageableModel;\ No newline at end of filediff --git a/src/Web/Grand.Web.Vendor/Models/Catalog/ProductModel.cs b/src/Web/Grand.Web.Vendor/Models/Catalog/ProductModel.csindex c4e38c6e7..92ae1bb28 100644--- a/src/Web/Grand.Web.Vendor/Models/Catalog/ProductModel.cs+++ b/src/Web/Grand.Web.Vendor/Models/Catalog/ProductModel.cs@@ -373,9 +373,7 @@ public class ProductModel : BaseEntityModel, ILocalizedModel<ProductLocalizedMod}- public class AddRequiredProductModel : AddProductModel- {- }+ public class AddRequiredProductModel : AddProductModel;public class AddProductSpecificationAttributeModel : BaseModel, IProductValidVendor{diff --git a/src/Web/Grand.Web/Features/Models/Blogs/GetBlogPostCategory.cs b/src/Web/Grand.Web/Features/Models/Blogs/GetBlogPostCategory.csindex f6c848307..762f20cfb 100644--- a/src/Web/Grand.Web/Features/Models/Blogs/GetBlogPostCategory.cs+++ b/src/Web/Grand.Web/Features/Models/Blogs/GetBlogPostCategory.cs@@ -3,6 +3,4 @@ using MediatR;namespace Grand.Web.Features.Models.Blogs;-public class GetBlogPostCategory : IRequest<IList<BlogPostCategoryModel>>-{-}\ No newline at end of file+public class GetBlogPostCategory : IRequest<IList<BlogPostCategoryModel>>;\ No newline at end of filediff --git a/src/Web/Grand.Web/Features/Models/Blogs/GetBlogPostTagList.cs b/src/Web/Grand.Web/Features/Models/Blogs/GetBlogPostTagList.csindex aa2e5be65..2c83e1581 100644--- a/src/Web/Grand.Web/Features/Models/Blogs/GetBlogPostTagList.cs+++ b/src/Web/Grand.Web/Features/Models/Blogs/GetBlogPostTagList.cs@@ -3,6 +3,4 @@ using MediatR;namespace Grand.Web.Features.Models.Blogs;-public class GetBlogPostTagList : IRequest<BlogPostTagListModel>-{-}\ No newline at end of file+public class GetBlogPostTagList : IRequest<BlogPostTagListModel>;\ No newline at end of filediff --git a/src/Web/Grand.Web/Features/Models/Blogs/GetBlogPostYear.cs b/src/Web/Grand.Web/Features/Models/Blogs/GetBlogPostYear.csindex 328447d82..df42a06d7 100644--- a/src/Web/Grand.Web/Features/Models/Blogs/GetBlogPostYear.cs+++ b/src/Web/Grand.Web/Features/Models/Blogs/GetBlogPostYear.cs@@ -3,6 +3,4 @@ using MediatR;namespace Grand.Web.Features.Models.Blogs;-public class GetBlogPostYear : IRequest<IList<BlogPostYearModel>>-{-}\ No newline at end of file+public class GetBlogPostYear : IRequest<IList<BlogPostYearModel>>;\ No newline at end of filediff --git a/src/Web/Grand.Web/Features/Models/Blogs/GetHomePageBlog.cs b/src/Web/Grand.Web/Features/Models/Blogs/GetHomePageBlog.csindex 90152c07d..df36cc0e7 100644--- a/src/Web/Grand.Web/Features/Models/Blogs/GetHomePageBlog.cs+++ b/src/Web/Grand.Web/Features/Models/Blogs/GetHomePageBlog.cs@@ -3,6 +3,4 @@ using MediatR;namespace Grand.Web.Features.Models.Blogs;-public class GetHomePageBlog : IRequest<HomePageBlogItemsModel>-{-}\ No newline at end of file+public class GetHomePageBlog : IRequest<HomePageBlogItemsModel>;\ No newline at end of filediff --git a/src/Web/Grand.Web/Features/Models/Catalog/GetComparedProducts.cs b/src/Web/Grand.Web/Features/Models/Catalog/GetComparedProducts.csindex 11c91b0c8..5a9261f5d 100644--- a/src/Web/Grand.Web/Features/Models/Catalog/GetComparedProducts.cs+++ b/src/Web/Grand.Web/Features/Models/Catalog/GetComparedProducts.cs@@ -3,6 +3,4 @@ using MediatR;namespace Grand.Web.Features.Models.Catalog;-public class GetComparedProducts : IRequest<IList<Product>>-{-}\ No newline at end of file+public class GetComparedProducts : IRequest<IList<Product>>;\ No newline at end of filediff --git a/src/Web/Grand.Web/Features/Models/News/GetHomePageNewsItems.cs b/src/Web/Grand.Web/Features/Models/News/GetHomePageNewsItems.csindex e1de28dc4..054325eae 100644--- a/src/Web/Grand.Web/Features/Models/News/GetHomePageNewsItems.cs+++ b/src/Web/Grand.Web/Features/Models/News/GetHomePageNewsItems.cs@@ -3,6 +3,4 @@ using MediatR;namespace Grand.Web.Features.Models.News;-public class GetHomePageNewsItems : IRequest<HomePageNewsItemsModel>-{-}\ No newline at end of file+public class GetHomePageNewsItems : IRequest<HomePageNewsItemsModel>;\ No newline at end of filediff --git a/src/Web/Grand.Web/Models/Catalog/BrandPagingModel.cs b/src/Web/Grand.Web/Models/Catalog/BrandPagingModel.csindex da296d79f..c790e5607 100644--- a/src/Web/Grand.Web/Models/Catalog/BrandPagingModel.cs+++ b/src/Web/Grand.Web/Models/Catalog/BrandPagingModel.cs@@ -2,6 +2,4 @@namespace Grand.Web.Models.Catalog;-public class BrandPagingModel : BasePageableModel-{-}\ No newline at end of file+public class BrandPagingModel : BasePageableModel;\ No newline at end of filediff --git a/src/Web/Grand.Web/Models/Catalog/CategoryPagingModel.cs b/src/Web/Grand.Web/Models/Catalog/CategoryPagingModel.csindex 0e2a5011e..d3a225142 100644--- a/src/Web/Grand.Web/Models/Catalog/CategoryPagingModel.cs+++ b/src/Web/Grand.Web/Models/Catalog/CategoryPagingModel.cs@@ -2,6 +2,4 @@namespace Grand.Web.Models.Catalog;-public class CategoryPagingModel : BasePageableModel-{-}\ No newline at end of file+public class CategoryPagingModel : BasePageableModel;\ No newline at end of filediff --git a/src/Web/Grand.Web/Models/Catalog/CollectionPagingModel.cs b/src/Web/Grand.Web/Models/Catalog/CollectionPagingModel.csindex b5b80dc79..a29add891 100644--- a/src/Web/Grand.Web/Models/Catalog/CollectionPagingModel.cs+++ b/src/Web/Grand.Web/Models/Catalog/CollectionPagingModel.cs@@ -2,6 +2,4 @@namespace Grand.Web.Models.Catalog;-public class CollectionPagingModel : BasePageableModel-{-}\ No newline at end of file+public class CollectionPagingModel : BasePageableModel;\ No newline at end of filediff --git a/src/Web/Grand.Web/Models/Catalog/VendorPagingModel.cs b/src/Web/Grand.Web/Models/Catalog/VendorPagingModel.csindex ead0377bb..422f27830 100644--- a/src/Web/Grand.Web/Models/Catalog/VendorPagingModel.cs+++ b/src/Web/Grand.Web/Models/Catalog/VendorPagingModel.cs@@ -2,6 +2,4 @@namespace Grand.Web.Models.Catalog;-public class VendorPagingModel : BasePageableModel-{-}\ No newline at end of file+public class VendorPagingModel : BasePageableModel;\ No newline at end of filediff --git a/src/Web/Grand.Web/Models/Common/PagerModel.cs b/src/Web/Grand.Web/Models/Common/PagerModel.csindex 91539ffc0..498c8ffe1 100644--- a/src/Web/Grand.Web/Models/Common/PagerModel.cs+++ b/src/Web/Grand.Web/Models/Common/PagerModel.cs@@ -2,6 +2,4 @@namespace Grand.Web.Models.Common;-public class PagerModel : BasePageableModel-{-}\ No newline at end of file+public class PagerModel : BasePageableModel;\ No newline at end of filediff --git a/src/Web/Grand.Web/Models/Customer/DocumentPagingModel.cs b/src/Web/Grand.Web/Models/Customer/DocumentPagingModel.csindex d25add00f..061848d8c 100644--- a/src/Web/Grand.Web/Models/Customer/DocumentPagingModel.cs+++ b/src/Web/Grand.Web/Models/Customer/DocumentPagingModel.cs@@ -2,6 +2,4 @@namespace Grand.Web.Models.Customer;-public class DocumentPagingModel : BasePageableModel-{-}\ No newline at end of file+public class DocumentPagingModel : BasePageableModel;\ No newline at end of filediff --git a/src/Web/Grand.Web/Models/News/NewsPagingFilteringModel.cs b/src/Web/Grand.Web/Models/News/NewsPagingFilteringModel.csindex 1dc530394..07d31cbba 100644--- a/src/Web/Grand.Web/Models/News/NewsPagingFilteringModel.cs+++ b/src/Web/Grand.Web/Models/News/NewsPagingFilteringModel.cs@@ -2,6 +2,4 @@namespace Grand.Web.Models.News;-public class NewsPagingFilteringModel : BasePageableModel-{-}\ No newline at end of file+public class NewsPagingFilteringModel : BasePageableModel;\ No newline at end of filediff --git a/src/Web/Grand.Web/Models/Orders/OrderPagingModel.cs b/src/Web/Grand.Web/Models/Orders/OrderPagingModel.csindex 918efaf04..d07a2256d 100644--- a/src/Web/Grand.Web/Models/Orders/OrderPagingModel.cs+++ b/src/Web/Grand.Web/Models/Orders/OrderPagingModel.cs@@ -2,6 +2,4 @@namespace Grand.Web.Models.Orders;-public class OrderPagingModel : BasePageableModel-{-}\ No newline at end of file+public class OrderPagingModel : BasePageableModel;\ No newline at end of file