You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1001 B
32 lines
1001 B
3 years ago
|
using BBWY.Server.Business;
|
||
|
using BBWY.Server.Model.Dto;
|
||
|
using Microsoft.AspNetCore.Http;
|
||
|
using Microsoft.AspNetCore.Mvc;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
|
||
|
namespace BBWY.Server.API.Controllers
|
||
|
{
|
||
|
public class ProductController : BaseApiController
|
||
|
{
|
||
|
private ProductBusiness productBusiness;
|
||
|
|
||
|
public ProductController(IHttpContextAccessor httpContextAccessor, ProductBusiness productBusiness) : base(httpContextAccessor)
|
||
|
{
|
||
|
this.productBusiness = productBusiness;
|
||
|
}
|
||
|
|
||
|
[HttpPost]
|
||
|
public ProductListResponse GetProductList([FromBody] SearchProductRequest searchProductRequest)
|
||
|
{
|
||
|
return productBusiness.GetProductList(searchProductRequest);
|
||
|
}
|
||
|
|
||
|
[HttpPost]
|
||
|
public IList<ProductSkuResponse> GetProductSkuList([FromBody] SearchProductSkuRequest searchProductSkuRequest)
|
||
|
{
|
||
|
return productBusiness.GetProductSkuList(searchProductSkuRequest);
|
||
|
}
|
||
|
}
|
||
|
}
|