예제 #1
0
        public ActionResult <ToolDTO> GetToolDetailByID(int id)
        {
            var tool = _toolRepo.GetToolDetailByID(id);

            if (tool == null)
            {
                return(NotFound("Khong tim thay tool"));
            }
            return(Ok(tool));
        }