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); }
public OwnerProperty AddExistingOwnerToProperty(PropertyOwner owner, int propertyId) { var ownerProperty = new OwnerProperty(propertyId, owner.Id); owner.OwnerProperty.Add(ownerProperty); return(ownerProperty); }
public OwnerProperty AddExsitingOwner(PropertyOwner owner) { var op = new OwnerProperty(this, owner.Id); owner.OwnerProperty.Add(op); return(op); }
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); }
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); }
public OwnerProperty(int propertyId, PropertyOwner propertyOwner) { PropertyId = propertyId; PropertyOwner = propertyOwner; }
public OwnerProperty(Property property, PropertyOwner propertyOwner) { Property = property; PropertyOwner = propertyOwner; }