public IHttpActionResult AcceptShareInvitationForNewUser(int id, ShareInvitationAccept_ApiRequestCreateModel shareInvitationAcceptRequestCreateModel)
        {
            var shareInvitation = _mapper.Map <ShareInvitation>(shareInvitationAcceptRequestCreateModel);

            var newUser = _mapper.Map <User>(shareInvitationAcceptRequestCreateModel);

            _shareInvitationService.AcceptInvitationForNewUser(shareInvitation, newUser);

            return(Ok());
        }
        public IHttpActionResult AcceptShareInvitationForExistingUser(int id, int idShareUser, ShareInvitationAccept_ApiRequestCreateModel shareInvitationAcceptRequestCreateModel)
        {
            var shareInvitation = _mapper.Map <ShareInvitation>(shareInvitationAcceptRequestCreateModel);

            var user = _userService.Get(idShareUser);

            _shareInvitationService.AcceptInvitationForExistingUser(shareInvitation, user);

            return(Ok());
        }