public static void GetAllSkills() { foreach (var item in skillLogic.GetAllSkills()) { Console.WriteLine(item); } }
public IActionResult GetAllSkills() { List <Skill> skills = _skillLogic.GetAllSkills().ToList(); if (!skills.Any()) { return(NotFound()); } return(Ok(skills)); }