How to pass a UserManager object to the Initialize class

0

I have a class in asp.net core 2.0 called Initialize that has a method

public async static Task SeedData(IServiceProvider serviceProvider, UserManager<ApplicationUser> userManager)
{

}

I want to call it from my Startup class as follows:

await Initializate.SeedData(app.ApplicationServices, ?);

my question is in the second parameter, how can I do it?

Thank you.

    
asked by Johander 23.04.2018 в 00:29
source

0 answers