smsohan / MvcMailer

A Mailer for ASP.Net MVC that forms the Email Body using MVC Views (Razor etc.) following Ruby on Rails ActionMailer style
MIT License
582 stars 178 forks source link

Pass a Model to View #2

Closed sendsamemail closed 13 years ago

sendsamemail commented 13 years ago

There doesnt seem to be a way to pass a model to the View, it seems I can only use and call an empty View and pass date through using ViewBag?

smsohan commented 13 years ago

Use ViewModel instead of ViewBag to pass your model and use the strongly typed Model in views. Hope this helps.