Example #1
0
        public ExcelResult AgreementsExcelDownload(OrganizationPrimaryKey organizationPrimaryKey)
        {
            var organization  = organizationPrimaryKey.EntityObject;
            var agreements    = GetAgreementsByOrgPeople(organization);
            var workbookTitle = $"{FieldDefinition.Organization.GetFieldDefinitionLabel()} {FieldDefinition.Agreement.GetFieldDefinitionLabelPluralized()} for {organization.DisplayName}";

            return(AgreementController.AgreementsExcelDownloadImpl(agreements, workbookTitle));
        }
Example #2
0
        public ExcelResult UserAgreementsExcelDownload(PersonPrimaryKey personPrimaryKey)
        {
            var person        = personPrimaryKey.EntityObject;
            var agreements    = GetAgreementsByPerson(person);
            var workbookTitle = $"{FieldDefinition.Agreement.GetFieldDefinitionLabelPluralized()} for {person.FullNameFirstLast}";

            return(AgreementController.AgreementsExcelDownloadImpl(agreements, workbookTitle));
        }