public bool TryAddBoard(Domain.Models.Board.Board board, out string link)
        {
            var boardRecord = boardConverter.Convert(board);

            link             = linkGenerator.NewLink();
            boardRecord.Link = link;

            var isAddingAccessRecordSuccess = true;

            switch (boardRecord.AccessType)
            {
            case AccessTypeRecord.Public:
                break;

            case AccessTypeRecord.Private:
                var record = privateAccessConverter.Convert((PrivateAccessParameters)board.AccessParameters);
                record.Link = boardRecord.Link;
                isAddingAccessRecordSuccess = dataBase.TryAddRecord(record, out var _);
                break;

            default:
                throw new NotImplementedException();
            }

            return(isAddingAccessRecordSuccess && dataBase.TryAddRecord(boardRecord, out var _));
        }
 public bool TryAddUser(Domain.Models.User.User user)
 {
     return(dataBase.TryAddRecord(userConverter.Convert(user), out var _));
 }