public async Task <ActionResult <bool> > DeleteContact(int id) { var wasDeleted = await _contactManager.DeleteContactAsync(id); if (wasDeleted) { return(NoContent()); } else { return(NotFound()); } }
public async Task <IActionResult> RemoveContactOfUser([FromRoute] int chatUserId, [FromQuery] int contactUserId) { return(Ok(await _contactManager.DeleteContactAsync(chatUserId, contactUserId))); }
public async Task <IActionResult> Delete(int id) { bool DeleteContact = await _contactManager.DeleteContactAsync(id); return(Ok(DeleteContact)); }