M# Tutorials

Learn to build .NET applications with M#. Our step-by-step tutorials will get you up-to-speed rapidly.
If you already know ASP.NET and C#, you can master M# in a week or two.



The client wants to save the list of users as a PDF file.


The file will have two columns, Email and Name, with header set to "Email" and "Name". Also add a header before the list: "List of users - [day/month/year] at [hour:minute]".
The PDF must be automatically generated by clicking a button and the PF must use the same template as the website.
The file name must contain the date and be named as following: "[dd-MM-yyyy]_Users".
The button for generating the PDF must be on the same page, but hidden while printing.

Your job

  1. Add a Name property to the User entity.
  2. Create a page with an "Export as PDF" button.
  3. Create the PDF template.
  4. Implement the button logic for generating the PDF.

Expected PDF