コード例 #1
0
        public IActionResult GetSkillById(Guid id)
        {
            if (string.IsNullOrWhiteSpace(id.ToString()))
            {
                return(BadRequest("Incorrect Parameter"));
            }
            Skill skill = _skillLogic.GetSkillById(id);

            if (skill == null)
            {
                return(NotFound());
            }

            return(Ok(skill));
        }