示例#1
0
 public static void GetAllSkills()
 {
     foreach (var item in skillLogic.GetAllSkills())
     {
         Console.WriteLine(item);
     }
 }
示例#2
0
        public IActionResult GetAllSkills()
        {
            List <Skill> skills = _skillLogic.GetAllSkills().ToList();

            if (!skills.Any())
            {
                return(NotFound());
            }

            return(Ok(skills));
        }