예제 #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));
        }