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