public HomeController(ILogger <HomeController> logger, SignInManager <IdentityUser> signInManager, ParksAndDeathDbContext context, UserManager <IdentityUser> userManager)
 {
     _context       = context;
     _signInManager = signInManager;
     _logger        = logger;
     _userManager   = userManager;
 }
 public static bool CheckBucketList(ParksAndDeathDbContext context, string id)
 {
     try
     {
         context.UserParks.Where(x => x.CurrentUserId == id).Where(y => y.ParkVisited == false).First();
         return(true);
     }
     catch
     {
         return(false);
     }
 }
        public static bool CheckUserInfo(ParksAndDeathDbContext context, string id)
        {
            try
            {
                context.UserInfo.Where(x => x.OwnerId == id).First();

                return(true);
            }
            catch
            {
                return(false);
            }
        }
 public LifeExpAPIController(ParksAndDeathDbContext context)
 {
     _context = context;
 }
Example #5
0
 public ParksDbController(ParksAndDeathDbContext context)
 {
     _context = context;
 }