public async Task RemoveConternAsync(string ConternID, string fanID) { Contern contern = GetContern(ConternID, fanID); _contern.Table.Remove(contern); await _contern._db.SaveChangesAsync(); }
public async Task CreateConternAsync(string ConternID, string fanID) { Contern contern = new Contern() { ID = $"{fanID}{ConternID}", ConternAccountID = ConternID, FansAccountID = fanID }; await _contern.Table.AddAsync(contern); await _contern._db.SaveChangesAsync(); }