public void DeleteTenant_Handler() { string firstName = null; string lastName = null; if (!terminalDevice.GetTenantName(ref firstName, ref lastName)) { return; } admin.DeleteTenant(firstName, lastName); }
public void DeleteTenant_Handler() { // Delete a tenant // Get the first name and the last name of the tenant to be deleted string firstName = null; string lastName = null; if (!terminalDevice.GetTenantName(ref firstName, ref lastName)) { return; } Manager.RemoveTenant(Manager.FindTenant(firstName, lastName)); }
public void DeleteTenant_Handler() { // Delete a tenant // Get the first name and the last name of the tenant to be deleted string firstName = null; string lastName = null; if (!terminalDevice.GetTenantName(ref firstName, ref lastName)) { return; } apartment.DeleteUser(firstName, lastName); }
public void DeleteTenant_Handler() { // Delete a tenant // Get the first name and the last name of the tenant to be deleted string firstName = null; string lastName = null; if (!terminalDevice.GetTenantName(ref firstName, ref lastName)) { return; } foreach (Tenant t in _tenants.ToArray()) { if (t._firstName.Equals(firstName)) { if (t._lastName.Equals(lastName)) { _tenants.Remove(t); } } } }
public void DeleteTenant_Handler() { // Delete a tenant // Get the first name and the last name of the tenant to be deleted string firstName = null; string lastName = null; if (!terminalDevice.GetTenantName(ref firstName, ref lastName)) { return; } foreach (Tenant i in tenants) { if (i.FirstName.Equals(firstName)) { if (i.LastName.Equals(lastName)) { tenants.Remove(i); } } } }