Below link is a MVC sample foe embding Power BI:
https://azure.microsoft.com/en-us/documentation/articles/power-bi-embedded-get-started-sample/
for passing filter from app you need to add the filter to the URL in format of {tableName/fieldName}:
https://app.powerbi.com/reportEmbed?reportId=d2a0ea38-0694-4c70-9673-ee9655d54a4a&$filter={tableName/fieldName} eq '{fieldValue}'