コード例 #1
0
 public async Task <IActionResult> AddNewContactToUser([FromRoute] int chatUserId, [FromQuery] int contactUserId)
 {
     return(Ok(await _contactManager.AddContactAsync(chatUserId, contactUserId)));
 }
コード例 #2
0
        public async Task <IActionResult> Add([FromBody] ContactEntity contact)
        {
            ContactEntity AddedContact = await _contactManager.AddContactAsync(contact);

            return(Ok(AddedContact));
        }