public async Task <IActionResult> GetCurrentToolState(int id) { var toolState = await _repo.GetCurrentToolState(id); var toolStateToReturn = _mapper.Map <ToolStateDto>(toolState); return(Ok(toolStateToReturn)); }