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