Ejemplo n.º 1
0
        public async Task <IActionResult> DeleteProductOptionsAsync([FromBody] List <string> optionIds)
        {
            try
            {
                await _productOptionService.DeleteManyProductOptionsAsync(optionIds);

                return(Ok());
            }
            catch (Exception ex)
            {
                _logger.LogError($"An error occurred. Exception: {ex}");
                return(StatusCode(500, "Internal Server Error. Please try again later"));
            }
        }