Exemple #1
0
        //TODO: Add verification that the one doing the change is part of the building
        /// <summary>
        /// Chnages apartments for a tenant
        /// </summary>
        /// <param name="userId">The Id of the User that connects to the Tenant</param>
        /// <param name="apartmentId">The Id of the new Apartment</param>
        /// <returns>Returns the Interface the newly updated Tenant</returns>
        public ITenant ChangeApartment(string userId, int apartmentId)
        {
            var tenant = _personRegister.ChangeApartment(userId, apartmentId);

            return(tenant);
        }