public UserInfo Register(UserInfo userInfo)
        {
            UserInfo result = null;
            // convert result to business entities and perform any business logic
            var user = _loggerRepository.GetUserInfoById(userInfo.UserId);

            if (user == null)
            {
                result = _loggerRepository.Register(userInfo);
            }

            return(result);
        }