/// <summary>
        /// Register the existing notifeye user to the Dashboard portal
        /// </summary>
        /// <param name="User">User Model</param>
        /// <returns>Authentication Token</returns>
        public async Task <string> RegisterNotifEyeUser(UserNotifEyeRegistration User)
        {
            //RegisterUser and get the get the Token
            return(await _userClient.RegisterNotifEyeUser(User));

            //Get the User Info using the received token
            //var user = await _userClient.GetUserInfoWithRegistrationToken(registrationToken);

            //if (user.Account != null && user.Account.Count > 0)
            //{
            //    await CreateAccountLocation(registrationToken, user.Account[0], User.Latitude, User.Longitude);
            //}

            //return registrationToken;
        }
 public async Task <IHttpActionResult> RegisterNotifEyeUser(UserNotifEyeRegistration User)
 {
     return(Ok(await _userApplicationService.RegisterNotifEyeUser(User)));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Register the existing notifeye user to the Dashboard portal
 /// </summary>
 /// <param name="User">User Model</param>
 /// <returns>Authentication Token</returns>
 public async Task <string> RegisterNotifEyeUser(UserNotifEyeRegistration User)
 {
     return(await _httpService.PostAsAsyncWithRegistrationToken <string>("User/registernotifeyeuser", User));
 }