public BaseResponse <bool> Create(UserSkillInputDto userSkill) { Create(Mapper.Map <UserSkill>(userSkill), out var isSaved); if (!isSaved) { throw new InternalServerErrorException(string.Format(Error.CreateError, $"user id {userSkill.UserId} skills")); } return(new SuccessResponse <bool>(true)); }
public BaseResponse <bool> Create([FromBody] UserSkillInputDto userSkill) { return(_userSkillService.Create(userSkill)); }