public DeleteUserStatus DeleteUser(int UserID) { try { if (CircuitMembersComponent.IsCircuitMember(UserID)) { return(DeleteUserStatus.IsMember); } else if (CircuitsComponent.GetCircuitsBySecretairyID(UserID).Count > 0) { return(DeleteUserStatus.IsSecretary); } else { UserComponent.Delete(UserID); return(DeleteUserStatus.Succeeded); } } catch (Exception ex) { HandleException(ex); return(DeleteUserStatus.Failed); } }