|
9 | 9 | using Grand.Business.Core.Interfaces.Customers; |
10 | 10 | using Grand.Domain.Permissions; |
11 | 11 | using Grand.Domain.Catalog; |
12 | | -using Grand.Domain.Customers; |
13 | 12 | using Grand.Domain.Vendors; |
14 | 13 | using Grand.Infrastructure; |
15 | 14 | using Grand.Web.Commands.Models.Vendors; |
|
21 | 20 | using Grand.Web.Models.Vendors; |
22 | 21 | using MediatR; |
23 | 22 | using Microsoft.AspNetCore.Mvc; |
| 23 | +using Grand.SharedKernel.Attributes; |
| 24 | +using Microsoft.AspNetCore.Http; |
24 | 25 |
|
25 | 26 | namespace Grand.Web.Controllers; |
26 | 27 |
|
| 28 | +[ApiGroup(SharedKernel.Extensions.ApiConstants.ApiGroupNameV2)] |
27 | 29 | public class CatalogController : BasePublicController |
28 | 30 | { |
29 | 31 | #region Constructors |
@@ -89,6 +91,7 @@ private VendorReviewOverviewModel PrepareVendorReviewOverviewModel(Domain.Vendor |
89 | 91 |
|
90 | 92 | #region Categories |
91 | 93 |
|
| 94 | + [ProducesResponseType(typeof(CategoryModel), StatusCodes.Status200OK)] |
92 | 95 | [HttpGet] |
93 | 96 | public virtual async Task<IActionResult> Category(string categoryId, CatalogPagingFilteringModel command) |
94 | 97 | { |
@@ -319,8 +322,7 @@ public virtual async Task<IActionResult> VendorAll(VendorPagingModel command) |
319 | 322 | [HttpPost] |
320 | 323 | [AutoValidateAntiforgeryToken] |
321 | 324 | [DenySystemAccount] |
322 | | - public virtual async Task<IActionResult> VendorReviews( |
323 | | - VendorReviewsModel model) |
| 325 | + public virtual async Task<IActionResult> VendorReviews(VendorReviewsModel model) |
324 | 326 | { |
325 | 327 | var vendor = await _vendorService.GetVendorById(model.VendorId); |
326 | 328 | if (vendor is not { Active: true } || !vendor.AllowCustomerReviews) |
|
0 commit comments