예제 #1
0
        public async Task <ActionResult> CreateTool(ToolAddDto tool)
        {
            var entity = _mapper.Map <Tool>(tool);

            _toolRepository.AddTool(entity);
            await _toolRepository.SaveAsync();

            return(Ok());
        }