Example #1
0
        public async Task <IHttpActionResult> GetSkills()
        {
            var result = await _skillsService.GetSkillAsync();

            if (result != null)
            {
                return(Ok(result));
            }
            return(new StatusCodeResult(HttpStatusCode.NoContent, Request));
        }
Example #2
0
        public async Task <IActionResult> Get(Guid id)
        {
            var skillDto = await _skillsService.GetSkillAsync(id);

            return(new OkObjectResult(skillDto));
        }