public RegisterModel(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ILogger <RegisterModel> logger,
     IEmailSender emailSender,
     GustafsGalleryStoreContext context,
     RoleManager <IdentityRole> roleManager)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _logger        = logger;
     _emailSender   = emailSender;
     _context       = context;
     _roleManager   = roleManager;
 }
 public CheckoutController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ILogger <ManageStaffController> logger,
     IEmailSender emailSender,
     IHostingEnvironment hostingEnvironment,
     GustafsGalleryStoreContext context,
     RoleManager <IdentityRole> roleManager)
 {
     _userManager        = userManager;
     _signInManager      = signInManager;
     _logger             = logger;
     _emailSender        = emailSender;
     _context            = context;
     _roleManager        = roleManager;
     _hostingEnvironment = hostingEnvironment;
 }