public void EnsureRecord(UserDetailsToken userDetailsToken) { _userDetailsRepository.EnsureRecord(userDetailsToken.AsUserDetails()); }
public IHttpActionResult SaveUserDetails(UserDetailsToken token) { token.id = User.Identity.GetUserId(); token = _accountService.Save(token); return(Ok(token)); }
public UserDetailsToken Save(UserDetailsToken token) { return(_userDetailsRepository.Save(token.AsUserDetails()).AsToken()); }