public async Task <IEnumerable <OwnerTenantInfoDto> > GetAllOwnerTenantByUnitId(int unitId)
        {
            if (unitId < 1)
            {
                return(new List <OwnerTenantInfoDto>());
            }
            var tableGateway = _tablegatwayFactory.CreateIApartmentTableGateway();

            return(await tableGateway.GetAllOwnerTenant(unitId).ConfigureAwait(false));
        }
        public async Task <IEnumerable <ApartmentUnitDTO> > GetAllApartmentUnits(int buildingId)
        {
            var tableGateway = _tablegatwayFactory.CreateIApartmentTableGateway();

            return(await tableGateway.GetAllByBuildingId(buildingId).ConfigureAwait(false));
        }