private void SetProperties(string name, double area, string address, DirectionKinds direction, long ownerId) { Name = name; Area = area; Address = address; Direction = direction; OwnerId = ownerId; }
public void Update(string name, double area, string address, DirectionKinds direction, long ownerId) { SetProperties(name, area, address, direction, ownerId); }
public Estate(long id, string name, double area, string address, DirectionKinds direction, long ownerId) { Id = id; SetProperties(name, area, address, direction, ownerId); }