private string GetInvoiceClient() { if (m_isUpdate) { Facade.IInvoiceExtra facInvoiceExtra = new Facade.Invoice(); DataSet dsClient = facInvoiceExtra.GetClientForInvoiceExtraId(Convert.ToInt32(ViewState["InvoiceId"])); m_identityId = Convert.ToInt32(dsClient.Tables[0].Rows[0]["IdentityId"]); ViewState["IdentityId"] = m_identityId; return(dsClient.Tables[0].Rows[0]["OrganisationName"].ToString()); } else { Facade.IOrganisation facOrganisation = new Facade.Organisation(); return(facOrganisation.GetNameForIdentityId(m_identityId)); } }