Exemple #1
0
        public PropertyOwner AddOwner(
            string userName,
            string firstName,
            string lastName,
            string contactEmail,
            string contactTelephone1,
            string contactTelephone2,
            bool onlineAccess,
            string userAvartaImgUrl,
            bool?isActive,
            int?roleId,
            string notes,
            OwnerAddress address)
        {
            var owner = new PropertyOwner(userName, firstName, lastName, contactEmail,
                                          contactTelephone1, contactTelephone2, false, userAvartaImgUrl, true, 2, "",
                                          address, DateTime.Now, DateTime.Now);

            var ownerProperty = new OwnerProperty(this, owner);


            owner.OwnerProperty.Add(ownerProperty);

            return(owner);
        }
Exemple #2
0
        public OwnerProperty AddExistingOwnerToProperty(PropertyOwner owner, int propertyId)
        {
            var ownerProperty = new OwnerProperty(propertyId, owner.Id);

            owner.OwnerProperty.Add(ownerProperty);

            return(ownerProperty);
        }
Exemple #3
0
        public OwnerProperty AddExsitingOwner(PropertyOwner owner)
        {
            var op = new OwnerProperty(this, owner.Id);

            owner.OwnerProperty.Add(op);

            return(op);
        }
Exemple #4
0
        public PropertyOwner AddNewOwnerToProperty(int propertyId, string userName, string firstName,
                                                   string lastName, string email, string telephone1, string telephone2, bool onlineAccess,
                                                   string avatarUrl, bool isActive, int roleId, string notes, OwnerAddress address)
        {
            var owner = new PropertyOwner(userName, firstName, lastName, email, telephone1,
                                          telephone2, onlineAccess, avatarUrl, isActive, roleId, notes, address, DateTime.Now, DateTime.Now);

            var ownerProperty = new OwnerProperty(propertyId, owner);

            owner.OwnerProperty.Add(ownerProperty);

            return(owner);
        }