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