Skip to content

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.

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.cs
index 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 file
diff --git a/src/Business/Grand.Business.Core/Commands/Checkout/Orders/PrepareOrderCodeCommand.cs b/src/Business/Grand.Business.Core/Commands/Checkout/Orders/PrepareOrderCodeCommand.cs
index 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 file
diff --git a/src/Business/Grand.Business.Core/Commands/System/Common/ClearMostViewedCommand.cs b/src/Business/Grand.Business.Core/Commands/System/Common/ClearMostViewedCommand.cs
index 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 file
diff --git a/src/Business/Grand.Business.Core/Interfaces/Storage/IMediaFileStore.cs b/src/Business/Grand.Business.Core/Interfaces/Storage/IMediaFileStore.cs
index 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 file
diff --git a/src/Core/Grand.Domain/Configuration/ISettings.cs b/src/Core/Grand.Domain/Configuration/ISettings.cs
index 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 file
diff --git a/src/Core/Grand.Domain/History/IHistory.cs b/src/Core/Grand.Domain/History/IHistory.cs
index 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 file
diff --git a/src/Core/Grand.Domain/SubBaseEntity.cs b/src/Core/Grand.Domain/SubBaseEntity.cs
index 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 file
diff --git a/src/Core/Grand.SharedKernel/Attributes/ApiControllerAttribute.cs b/src/Core/Grand.SharedKernel/Attributes/ApiControllerAttribute.cs
index 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 file
diff --git a/src/Core/Grand.SharedKernel/Attributes/IgnoreApiAttribute.cs b/src/Core/Grand.SharedKernel/Attributes/IgnoreApiAttribute.cs
index 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 file
diff --git a/src/Plugins/ExchangeRate.McExchange/McExchangeRatePlugin.cs b/src/Plugins/ExchangeRate.McExchange/McExchangeRatePlugin.cs
index 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 file
diff --git a/src/Plugins/Theme.Modern/ModernThemePlugin.cs b/src/Plugins/Theme.Modern/ModernThemePlugin.cs
index 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 file
diff --git a/src/Tests/Grand.Business.Common.Tests/Extensions/TranslateExtensionsTests.cs b/src/Tests/Grand.Business.Common.Tests/Extensions/TranslateExtensionsTests.cs
index 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 TranslateExtensionsTests
record.GetTranslationPermissionName(translationServiceMock.Object, "PL"));
}
- private struct FakeStruct
- {
- }
+ private struct FakeStruct;
}
\ No newline at end of file
diff --git a/src/Web/Grand.Web.Admin/Models/Catalog/ProductModel.cs b/src/Web/Grand.Web.Admin/Models/Catalog/ProductModel.cs
index 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<ProductLocalizedMod
public 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.cs
index 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.cs
index 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 file
diff --git a/src/Web/Grand.Web.Common/Controllers/BasePaymentController.cs b/src/Web/Grand.Web.Common/Controllers/BasePaymentController.cs
index 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 file
diff --git a/src/Web/Grand.Web.Common/Controllers/BasePluginController.cs b/src/Web/Grand.Web.Common/Controllers/BasePluginController.cs
index 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 file
diff --git a/src/Web/Grand.Web.Common/Controllers/BaseShippingController.cs b/src/Web/Grand.Web.Common/Controllers/BaseShippingController.cs
index 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 file
diff --git a/src/Web/Grand.Web.Common/Models/ILocalizedModel.cs b/src/Web/Grand.Web.Common/Models/ILocalizedModel.cs
index 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.cs
index 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 file
diff --git a/src/Web/Grand.Web.Vendor/Models/Catalog/ProductModel.cs b/src/Web/Grand.Web.Vendor/Models/Catalog/ProductModel.cs
index 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.cs
index 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 file
diff --git a/src/Web/Grand.Web/Features/Models/Blogs/GetBlogPostTagList.cs b/src/Web/Grand.Web/Features/Models/Blogs/GetBlogPostTagList.cs
index 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 file
diff --git a/src/Web/Grand.Web/Features/Models/Blogs/GetBlogPostYear.cs b/src/Web/Grand.Web/Features/Models/Blogs/GetBlogPostYear.cs
index 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 file
diff --git a/src/Web/Grand.Web/Features/Models/Blogs/GetHomePageBlog.cs b/src/Web/Grand.Web/Features/Models/Blogs/GetHomePageBlog.cs
index 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 file
diff --git a/src/Web/Grand.Web/Features/Models/Catalog/GetComparedProducts.cs b/src/Web/Grand.Web/Features/Models/Catalog/GetComparedProducts.cs
index 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 file
diff --git a/src/Web/Grand.Web/Features/Models/News/GetHomePageNewsItems.cs b/src/Web/Grand.Web/Features/Models/News/GetHomePageNewsItems.cs
index 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 file
diff --git a/src/Web/Grand.Web/Models/Catalog/BrandPagingModel.cs b/src/Web/Grand.Web/Models/Catalog/BrandPagingModel.cs
index 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 file
diff --git a/src/Web/Grand.Web/Models/Catalog/CategoryPagingModel.cs b/src/Web/Grand.Web/Models/Catalog/CategoryPagingModel.cs
index 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 file
diff --git a/src/Web/Grand.Web/Models/Catalog/CollectionPagingModel.cs b/src/Web/Grand.Web/Models/Catalog/CollectionPagingModel.cs
index 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 file
diff --git a/src/Web/Grand.Web/Models/Catalog/VendorPagingModel.cs b/src/Web/Grand.Web/Models/Catalog/VendorPagingModel.cs
index 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 file
diff --git a/src/Web/Grand.Web/Models/Common/PagerModel.cs b/src/Web/Grand.Web/Models/Common/PagerModel.cs
index 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 file
diff --git a/src/Web/Grand.Web/Models/Customer/DocumentPagingModel.cs b/src/Web/Grand.Web/Models/Customer/DocumentPagingModel.cs
index 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 file
diff --git a/src/Web/Grand.Web/Models/News/NewsPagingFilteringModel.cs b/src/Web/Grand.Web/Models/News/NewsPagingFilteringModel.cs
index 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 file
diff --git a/src/Web/Grand.Web/Models/Orders/OrderPagingModel.cs b/src/Web/Grand.Web/Models/Orders/OrderPagingModel.cs
index 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