public UtentiController(NContext context, UserManager <ApplicationUser> userManager,
                         SignInManager <ApplicationUser> signInManager)
 {
     _context       = context;
     _userManager   = userManager;
     _signInManager = signInManager;
 }
 public AccountController(NContext context, UserManager <ApplicationUser> userManager,
                          SignInManager <ApplicationUser> signInManager, ILogger <RegisterModel> logger, IEmailSender emailSender)
 {
     _context       = context;
     _userManager   = userManager;
     _signInManager = signInManager;
     _logger        = logger;
     _emailSender   = emailSender;
 }
示例#3
0
        // GET: News/Create
        public IActionResult Create()
        {
            NContext db = new NContext();

            List <SelectListItem> categories = new List <SelectListItem>();

            foreach (var c in db.categories.ToList())
            {
                categories.Add(new SelectListItem {
                    Text = c.CategoryName, Value = c.CategoryId.ToString()
                });
            }
            ViewBag.Category = categories;
            return(View());
        }
 public PrenotazioneController(NContext context)
 {
     _context = context;
 }
 public ArticoloController(NContext context)
 {
     _context = context;
 }
示例#6
0
 public GraficiController(NContext context)
 {
     _context = context;
 }
示例#7
0
 public GameRepository(NContext context)
 {
     this.context = context;
 }
 public VersamentiApiController(NContext context)
 {
     _context = context;
 }
 public StazioneController(NContext context)
 {
     _context = context;
 }
 public RoleController(RoleManager <IdentityRole> roleMgr, UserManager <ApplicationUser> userMrg, NContext context)
 {
     roleManager = roleMgr;
     userManager = userMrg;
     _context    = context;
 }
示例#11
0
 public LineeApiController(NContext context)
 {
     _context = context;
 }
示例#12
0
 public ComponenteArticoloController(NContext context)
 {
     _context = context;
 }
示例#13
0
 public DatabaseSeeder(NContext context)
 {
     _context = context;
     //Uses the GameRepo to add new Games and add friends
     repo = new GameRepository(context);
 }
 public GraficiComponentiApiController(NContext context)
 {
     _context = context;
 }
示例#15
0
 public NewsController(NContext context)
 {
     _context = context;
     //  _newsGatewayRepository = newsGatewayRepository;
 }