public JsonResult RenameSkill(SkillViewModel skill) { try { _skillsService.RenameSkill(Mapper.Map(skill)); } catch (UnexpectedException e) { Response.StatusCode = (int)HttpStatusCode.BadRequest; return(Json(e.Message)); } return(Json("OK")); }