I've created a custom field for Tenant called TenantCustomRefNumber
I want to access it from the phonebook _CreatePersonModal.cshtml dialog when it opens.
tried :
public async Task<PartialViewResult> CreatePersonModal()
{
Task<Tenant> _tenant = _personAppService.GetTenant();
}
however no customfields are not returned with this object.
guidance please.
3 Answer(s)
-
0
Hi @Mdonogma,
Have you added new field to Tenant class ? If so, this is a basic C# use case. If _personAppService.GetTenant returns a Tenant instance, then it must have that field.
If you followed another way or if I understand you wrongly, can you explain it a bit more detailed ?
Thanks.
-
0
that's why i logged an issue , it should be that easy.
- the tenant instance does not have the custom field.
try it yourself. add a tenant field then call : Task<Tenant> _tenant = _personAppService.GetTenant();
you'll see tenant does not have the custom field when returned.
-
0
Thanks @Mdonogma,
Can you lastly share your modified Tenant class ? I will try to reproduce this problem.
Thanks.