title: Umbraco: Changing the MemberType of an existing Member
body: <p>In my Umbraco configuration, I have a member who is created with one associated MemberType, but administrators need to be able to move them to a different MemberType without losing the user's credentials so just creating a new Member would - as far as I can tell - probably not work for this.</p>
  
  <p>I can do this:</p>
  
  <pre><code>Member ourMember = Member.GetAllAsList().Where(x =&gt; x.Id == memberId).First();
  ourMember.ContentType = umbraco.cms.businesslogic.ContentType.GetByAlias(newMemberType);
  ourMember.Save();
  </code></pre>
  
  <p>However, saving does not change the <code>ContentType</code> and the properties of the old <code>ContentType</code> persist on the member while it exists. Presumably there is some different way of making this change? Otherwise is there a way to transfer the <code>MembershipUser</code> to a new Member without losing the login credentials?</p>
  
  <p>I realise I should possibly be using the <code>ContentService</code> for this but I can't find much useful information about how to do that and there is at least <em>some</em> regarding the old approach.</p>
  
  <p>Also I can't help but feel that this way of getting a Member by Id is a terrible idea, but I couldn't see an easier one straight off.</p>