Example #1
0
        /// <summary>
        /// Updatees Tenant Details
        /// </summary>
        /// <param name="userId">The Id of the User</param>
        /// <param name="firstName">The new First Name of the Tenant</param>
        /// <param name="lastName">The new Last name of the Tenant</param>
        /// <param name="dob">The new Date of Birth of the Tenant</param>
        /// <param name="phone">The new Phone of the Tenant</param>
        /// <returns>Returns an Interface of Teannts</returns>
        public ITenant UpdateTenant(string userId, string firstName, string lastName, DateTime dob, string phone)
        {
            var tenant = _personRegister.UpdateTenant(userId, firstName, lastName, dob, phone);

            return(tenant);
        }