示例#1
0
 public IHttpActionResult DeleteSkillProgrammer(string userId, int skillId)
 {
     try
     {
         _skillService.DeleteSkillOfProgrammer(userId, skillId);
     }
     catch (ValidationException ex)
     {
         return(BadRequest(ex.Message));
     }
     catch (Exception)
     {
         return(InternalServerError());
     }
     return(Ok(new { Message = "Skill deleted successfully!" }));
 }