public IActionResult Invite(int receiverId) { try { _contactService.AddRelationship(receiverId); return(Ok()); } catch (ContactNotFoundException ex) { return(BadRequest(new { message = ex.Message })); } }
public IActionResult Invite(int receiverId) { try { _contactService.AddRelationship(receiverId); return(Ok()); } catch (ContactNotFoundException ex) { return(BadRequest(new { message = ex.Message })); } }