Return value from Startup.cs

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

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



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

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-

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