Lesson 13: Organizing the MVC Web API Program.cs File for Readability
Lesson Description
Your program.cs file can quickly become very large if you don't take the steps to organize your code. In this lesson you create extension methods to move code to different classes.
Content
Lesson Objectives 00:00
DEMO: Create a Constants Class 00:29
Extension Methods for MVC Applications 02:03
DEMO: Create a Service Extension Class 02:32
DEMO: Add JSON Configuration Extension Method 04:27
DEMO: Add MVC Host Extension Method for Serilog 05:31
DEMO: Create Web Application Builder Extension 06:26
DEMO: Create Repository Extension Method 07:26
Lesson Summary 09:00
You can get all the samples and hands-on labs for this course at https://www.pdsa.com/YouTube.
If you are interested in generating MVC Web API applications check out my FREE PDSC Developer Utilities at https://www.pdsa.com/Utilities.
#mvc #webapi #programcs #organizingwebapis #csharp #development #programming #dotnet #dotnetcore #dotnet6 #dotnet7 #dotnet8 #pauldsheriff #pluralsight #youtube
Paul.About()
Hello, my name is Paul D. Sheriff and I have a passion for teaching. I have been training developers for over 35 years through books, videos, article, blog posts, and international conferences and user groups.
Paul.Contact()
Website: https://www.pdsa.com
Email: [email protected]
LinkedIn: / paulsheriff
Blog: https://blogs.pdsa.com/
Pluralsight: https://app.pluralsight.com/profile/a...
YouTube Channel: @pauldsheriff