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