Example #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);
        }
Example #2
0
        public OwnerProperty AddExistingOwnerToProperty(PropertyOwner owner, int propertyId)
        {
            var ownerProperty = new OwnerProperty(propertyId, owner.Id);

            owner.OwnerProperty.Add(ownerProperty);

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

            owner.OwnerProperty.Add(op);

            return(op);
        }
Example #4
0
        public PropertyOwner UpdateOwner(PropertyOwner owner, string firstName, string lastName, string email,
                                         string telephone1, string telephone2, string avatarUrl, bool isActive,
                                         string notes, string streetNumber, string city, string stateProv, string country, string postZipCode)
        {
            OwnerAddress updatedAddress = new OwnerAddress(
                streetNumber, city, stateProv, country, postZipCode
                );

            owner.Update(firstName, lastName, email, telephone1, telephone2, avatarUrl, isActive, notes, updatedAddress);

            return(owner);
        }
Example #5
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);
        }
Example #6
0
 public OwnerProperty(int propertyId, PropertyOwner propertyOwner)
 {
     PropertyId    = propertyId;
     PropertyOwner = propertyOwner;
 }
Example #7
0
 public OwnerProperty(Property property, PropertyOwner propertyOwner)
 {
     Property      = property;
     PropertyOwner = propertyOwner;
 }