예제 #1
0
        public void NewAdministratorCommunity(ref AdministratorsModel newadministrator)
        {
            CommunitiesModel community = new CommunitiesModel();
            CommunitiesModel communityDetails = new CommunitiesModel();

            community.CommunityID = newadministrator.CommunityID;
            CommunitiesDAL communitiesDAL = new CommunitiesDAL();
            communityDetails = communitiesDAL.CommunityDetails(community);

            newadministrator.CommunityName = communityDetails.CommunityName;
            newadministrator.CommunityAddress = communityDetails.CommunityAddress;
            newadministrator.City = communityDetails.City;
            newadministrator.Zip = communityDetails.Zip;
            newadministrator.State = communityDetails.State;
            newadministrator.Country = communityDetails.Country;
        }
예제 #2
0
        public void NewSecurityManagerCommunity(ref SecurityManagersModel securitymanager)
        {
            CommunitiesModel community = new CommunitiesModel();
            CommunitiesModel communityDetails = new CommunitiesModel();

            community.CommunityID = securitymanager.CommunityID;
            CommunitiesDAL communitiesDAL = new CommunitiesDAL();
            communityDetails = communitiesDAL.CommunityDetails(community);

            securitymanager.CommunityName = communityDetails.CommunityName;
            securitymanager.CommunityAddress = communityDetails.CommunityAddress;
            securitymanager.City = communityDetails.City;
            securitymanager.Zip = communityDetails.Zip;
            securitymanager.State = communityDetails.State;
            securitymanager.Country = communityDetails.Country;
        }
예제 #3
0
        internal void NewSecurityPersonnelCommunity(ref SecurityPersonnelsModel securitypersonnel)
        {
            CommunitiesModel community = new CommunitiesModel();
            CommunitiesModel communityDetails = new CommunitiesModel();

            community.CommunityID = securitypersonnel.CommunityID;
            CommunitiesDAL communitiesDAL = new CommunitiesDAL();
            communityDetails = communitiesDAL.CommunityDetails(community);

            securitypersonnel.CommunityName = communityDetails.CommunityName;
            securitypersonnel.CommunityAddress = communityDetails.CommunityAddress;
            securitypersonnel.City = communityDetails.City;
            securitypersonnel.Zip = communityDetails.Zip;
            securitypersonnel.State = communityDetails.State;
            securitypersonnel.Country = communityDetails.Country;
        }
예제 #4
0
        internal void NewHomeOwnerCommunity(ref HomeOwnersModel homeowner)
        {
            CommunitiesModel community = new CommunitiesModel();
            CommunitiesModel communityDetails = new CommunitiesModel();

            community.CommunityID = homeowner.CommunityID;
            CommunitiesDAL communitiesDAL = new CommunitiesDAL();
            communityDetails = communitiesDAL.CommunityDetails(community);

            homeowner.CommunityName = communityDetails.CommunityName;
            homeowner.CommunityAddress = communityDetails.CommunityAddress;
            homeowner.City = communityDetails.City;
            homeowner.Zip = communityDetails.Zip;
            homeowner.State = communityDetails.State;
            homeowner.Country = communityDetails.Country;
        }
예제 #5
0
        internal void NewServiceProviderCommunity(ref ServiceProvidersModel serviceprovider)
        {
            CommunitiesModel community = new CommunitiesModel();
            CommunitiesModel communityDetails = new CommunitiesModel();

            community.CommunityID = serviceprovider.CommunityID;
            CommunitiesDAL communitiesDAL = new CommunitiesDAL();
            communityDetails = communitiesDAL.CommunityDetails(community);

            serviceprovider.CommunityName = communityDetails.CommunityName;
            serviceprovider.CommunityAddress = communityDetails.CommunityAddress;
            serviceprovider.City = communityDetails.City;
            serviceprovider.Zip = communityDetails.Zip;
            serviceprovider.State = communityDetails.State;
            serviceprovider.Country = communityDetails.Country;
        }