public FriendController(SharedActivityDbContext context)
 {
     //Links Db
     //If no relations add default to prevent null references
     if (context.UserToUser == null)
     {
         context.UserToUser.Add(new UserToUser()
         {
             UserId = "0", FriendId = "0"
         });
     }
     context.SaveChanges();
     _context = context;
 }
Beispiel #2
0
 public ActivitiesController(SharedActivityDbContext context)
 {
     _context = context;
 }
 public HomeController(SharedActivityDbContext context, IConfiguration configuration)
 {
     _context       = context;
     _configuration = configuration;
 }