Public contacts

This commit is contained in:
2025-08-08 23:31:05 +08:00
parent c514adfbbf
commit 7ddb904335
7 changed files with 1838 additions and 0 deletions

View File

@@ -557,6 +557,14 @@ public class AccountService(
throw;
}
}
public async Task<AccountContact> SetContactMethodPublic(Account account, AccountContact contact, bool isPublic)
{
contact.IsPublic = isPublic;
db.AccountContacts.Update(contact);
await db.SaveChangesAsync();
return contact;
}
public async Task DeleteContactMethod(Account account, AccountContact contact)
{