Пример #1
0
        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));
        }
Пример #2
0
 public BaseResponse <bool> Create([FromBody] UserSkillInputDto userSkill)
 {
     return(_userSkillService.Create(userSkill));
 }