/// <summary> /// Creates a new Apartment instance /// </summary> /// <param name="level">The Level the apartment is on</param> /// <param name="number">The Number of the apartment</param> /// <param name="tenantsAllowed">The number of tenants allowed in the apartment</param> /// <param name="facingDirection">The Direction the apartment is facing</param> /// <param name="userId">The Id of the User of the building manager that creates the apartment</param> /// <returns>Returns an interface of the newly created Apartment</returns> public IApartment CreateApartment(string level, string number, int tenantsAllowed, string facingDirection, string userId) { var apt = _buildingRegister.CreateApartment(level, number, tenantsAllowed, facingDirection, _personRegister.FetchBuildingId(userId)); return(apt); }