Here are the steps to add MVC to your application:
1. Open the Startup.cs file, then in "Configure" method type in the following to enable MVC
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseStaticFiles(); app.UseMvc(); }
The app.UseMvc method tells the application to use ASP.NET Core MVC framework for this application
Even though we have enabled MVC in our application we haven't configure any routes for it. We will do that in the next post.
github Repository: https://github.com/techjunkiejh/NorthwindCafe/tree/Hour3
Mua vé máy bay tại Aivivu, tham khảo
ReplyDeletevé máy bay đi Mỹ
vietnam airlines quốc tế
lich bay tu duc ve viet nam
tình hình vé máy bay từ nhật về việt nam
ve may bay vietnam airline tu han quoc ve viet nam
vé máy bay từ Toronto về việt nam
chi phí vé máy bay cho chuyên gia nước ngoài
Đặt vé máy bay tại Aivivu, tham khảo
ReplyDeletegia ve may bay di my
vé máy bay từ mỹ về việt nam bao nhiêu
chuyến bay thương mại từ canada về việt nam
đặt vé từ nhật về việt nam
mở lại đường bay việt nam - hàn quốc
Vé máy bay từ Đài Loan về VN
Chi phi cho chuyen gia nuoc ngoai