常用方法
常用方法
常用方法
常用方法
public async Task <Contact> CreateContactAsync(Guid userId, Contact contact) { _logger.Information($"Creating new contact for user {userId}..."); contact.UserId = userId; contact.ContactId = await _contactRepo.CreateAsync(contact); _logger.Information($"ID for new contact {contact.FullName}: {contact.ContactId}"); return(contact); }