|
|
|
@ -66,10 +66,18 @@ namespace EasyAbp.EShop.Products.Products |
|
|
|
} |
|
|
|
|
|
|
|
[HttpGet] |
|
|
|
[Obsolete("Use `by-unique-name/{uniqueName}`")] |
|
|
|
[Route("by-code/{code}")] |
|
|
|
public Task<ProductDto> GetByCodeAsync(Guid storeId, string code) |
|
|
|
{ |
|
|
|
return _service.GetByCodeAsync(storeId, code); |
|
|
|
return _service.GetByUniqueNameAsync(storeId, code); |
|
|
|
} |
|
|
|
|
|
|
|
[HttpGet] |
|
|
|
[Route("by-unique-name/{uniqueName}")] |
|
|
|
public Task<ProductDto> GetByUniqueNameAsync(Guid storeId, string uniqueName) |
|
|
|
{ |
|
|
|
return _service.GetByUniqueNameAsync(storeId, uniqueName); |
|
|
|
} |
|
|
|
|
|
|
|
[HttpDelete] |
|
|
|
|