private void GetAndStoreAuthorisedOrganisationName(ApiRepository apiRepository)
        {
            // Get the organisation name from the api
            Response organisationResponse = apiRepository.GetItemByIdOrCode <Organisation>(Session, null);

            if (organisationResponse.Organisations != null && organisationResponse.Organisations.Count > 0)
            {
                Session["xero_organisation_name"] = organisationResponse.Organisations[0].Name;
                Session["xero_connection_time"]   = DateTime.Now;
            }
        }
 private void GetAndStoreAuthorisedOrganisationName(ApiRepository apiRepository)
 {
     // Get the organisation name from the api
     Response organisationResponse = apiRepository.GetItemByIdOrCode<Organisation>(Session, null);
     if (organisationResponse.Organisations != null && organisationResponse.Organisations.Count > 0)
     {
         Session["xero_organisation_name"] = organisationResponse.Organisations[0].Name;
         Session["xero_connection_time"] = DateTime.Now;
     }
 }