Esempio n. 1
0
        public async Task <ActionResult <bool> > DeleteContact(int id)
        {
            var wasDeleted = await _contactManager.DeleteContactAsync(id);

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

            return(Ok(DeleteContact));
        }