Beispiel #1
0
 async Task UpdateProfileTableAsync(string userId, string pictureUrl)
 {
     using (var db = new MuDbContext())
     {
         db.Profiles.Find(userId).Picture = pictureUrl;
         try
         {
             await db.SaveChangesAsync();
         }
         catch (Exception e)
         {
             throw e;
         }
     }
 }
Beispiel #2
0
 //
 //  Database Context DI
 //
 public JoinsController(MuDbContext context)
 {
     db = context;
 }
Beispiel #3
0
 public JoinsController()
 {
     db = new MuDbContext();
 }