Return value from Startup.cs

Posted by Hers under ASP.NET MVC on 5/23/2017 | Points: 10 | Views : 280 | Status : [Member] | Replies : 1
Hi,

I have a method in Startup.cs in Asp.net MVC 5. This method gives me a list of values. How do I take these values to display in the admin page?

Thanks




Responses

Posted by: Jitendrasoft09 on: 5/26/2017 [Member] [MVP] Starter | Points: 25

Up
0
Down
Startup.cs is the replacement of global.asax. It is responsible to load the value of configuration. It is not recommended to add list of values in Startup.cs instead use simple class. Just call the .UseStartup<Startup>() in your action method to return into view. Hope It helps you, check now link below-
www.c-sharpcorner.com/article/the-startup-class-in-Asp-Net-core/

Jitendra Kumar
If my post helps you, plz mark as an answer.

Hers, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response