public void Post([FromBody] ToolDto toolDto) { try { _toolService.AddTool(toolDto); } catch (Exception e) { _logger.LogError(e.Message, e); throw; } }
public IActionResult Add(ToolDto toolDto) { return(Ok(_toolService.AddTool(toolDto))); }