Пример #1
0
 public ActionResult <SkillDto> Delete([FromHeader] Guid token, String skillName)
 {
     try
     {
         ValidateToken(token);
         return(Ok(_skillService.DeleteByName(skillName)));
     }
     catch (AuthenticationException)
     {
         return(Unauthorized());
     }
     catch (ArgumentException e)
     {
         return(NotFound(e.Message));
     }
 }