/// <summary> /// Creates a new Tenant /// </summary> /// <param name="firstName">The First Name of the Tenant</param> /// <param name="lastName">The Last Name of the Tenant</param> /// <param name="dob">The Date of Birth of the Tenant</param> /// <param name="phone">The Phone of the Tenant</param> /// <param name="userId">The Id of the user that connects to the Tenant</param> /// <param name="apartmentId">The Id of the apartment that the Tenant will live in</param> /// <param name="creatorId">The Id of the building manager that creates the tenant</param> /// <returns>Returns an Interface of the newly created Tenant</returns> public ITenant CreateTenant(string firstName, string lastName, DateTime dob, string phone, string userId, int apartmentId, string creatorId) { var tenant = _personRegister.CreateTenant(firstName, lastName, dob, phone, userId, apartmentId, _personRegister.FetchBuildingId(creatorId)); return(tenant); }