Exemplo n.º 1
0
        public ActionResult <IEnumerable <ToolDTO> > GetToolByName(String toolName = "")
        {
            var tool = _toolRepo.GetToolByName(toolName).ToList();

            if (tool.Count == 0)
            {
                return(NotFound("Khong tim thay tool"));
            }
            return(Ok(tool));
        }