Asterisk AMI Same Event Name problem in creating Dashboard

I am have completed my asterisk side work now when i am retrieving event names from asterisk server using Aster.Net API I have a problem that Event Names are same . Like DTMF value is coming 4 times , 2 times it is giving the value which user have given for ivr and 2 times for feedback.I have to select the latest one each time which DTMF Event value for feedback .It is difficult to get this values using database queries. I have to change something in API(AMI) or at asterisk server side can any one suggest any link or help so while retrieving each time i can change event name. I have to make change in my AMI code but i am not able to reach there. Anybody have faced this situation or experience how to handle this situation.
Thanks in Advance