public async Task UpdateUser(User updateData)
 {
     using (var context = new AF_Context())
     {
         try
         {
             User us = context.Users.First(u => u.UserId == updateData.UserId);
             context.Entry(us).CurrentValues.SetValues(updateData);
             await context.SaveChangesAsync();
         }
         catch (Exception ex)
         {
             throw ex;
         }
     }
 }
 public async Task UpdateUser(User updateData)
 {
     throw new NotImplementedException();
 }
 public async Task AddUser(User newUser)
 {
     using (var context = new AF_Context())
     {
         try
         {
             context.Users.Add(newUser);
             int recordsAffected = await context.SaveChangesAsync();
         }
         catch (Exception ex)
         {
             throw ex;
         }
     }
 }
 public async Task AddUser(User newUser)
 {
     throw new NotImplementedException();
 }