예제 #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;
         }
     }
 }
예제 #2
0
 //
 //  Database Context DI
 //
 public JoinsController(MuDbContext context)
 {
     db = context;
 }
예제 #3
0
 public JoinsController()
 {
     db = new MuDbContext();
 }