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.

Use POST method (#369) / GetDatesForMonth

Taras Pitlik31d0f4afb7f0
diff --git a/src/Web/Grand.Web/Controllers/ProductController.cs b/src/Web/Grand.Web/Controllers/ProductController.cs
index d41c7831b..f0a56f536 100644
--- a/src/Web/Grand.Web/Controllers/ProductController.cs
+++ b/src/Web/Grand.Web/Controllers/ProductController.cs
@@ -736,7 +736,7 @@ namespace Grand.Web.Controllers
#endregion
#region Calendar
- [HttpGet]
+ [HttpPost]
public virtual async Task<IActionResult> GetDatesForMonth(string productId, int month, string parameter, int year, [FromServices] IProductReservationService productReservationService)
{
var allReservations = await productReservationService.GetProductReservationsByProductId(productId, true, null);