public async Task <IActionResult> Delete(int id) { var service = new AssetService(_assetRepository); var response = await service.DeleteAsset(id); if (!response.Success) { _logger.LogError($"Delete request failed for asset with ID={id}"); return(BadRequest(response.Message)); } _logger.LogInformation($"Delete request for asset with ID={response}"); return(Ok(response.Data)); }