public async Task <IActionResult> UpdateSkill(int SkillId, Skill skill) { try { var res = await _service.UpdateSkills(SkillId, skill); if (res != null) { return(Ok(res)); } return(StatusCode(StatusCodes.Status204NoContent)); } catch (Exception ex) { throw; } }