private TAccount UpdateAccountNameDetail(string friendlyName) { Account account = TwilioClient.UpdateAccountName(friendlyName); if (account.RestException != null) { throw new Exception(account.RestException.Message); } return(Mapper.Map <TAccount>(account)); }