public async Task <IActionResult> DeleteById(Guid id) { try { var query = await _productDetailService.DeleteById(id); return(Ok(query)); } catch (Exception e) { _loggerManager.LogError($"Ocurrio un error mientras se eliminaba el product detail: {e}"); throw new ApiException(AppResources.BadRequest, HttpStatusCode.BadRequest); } }