I have a select many list box. in that list box i have some user names and some department names. I need to send mails to the selected. Let us say if 2 users and one department is selected then i need to send the mails to all users of selected department and selected users (2 users).
For the requirement i am careting the list like following
I am able to get the list of selected things in my controller. But what i am getting is only id of selected item. From that again i need to process the list for determing whether selected thing is actually a user or depatrment.
Can i get the description in any way back?. Or in any way can i accomplish this?.