How to consume SSO samlResponse in my C# application

I have a web appllcation which has to redirect to particular SSO login site and after athentication it will be sending the samlresponse back to the site which is in the saml2 response.

I have to consume the samlresponse and have to decode the samlresponse using the certificate.

Please help me how to do in C# what are the ddl I have to add.