public IHttpActionResult Post(FriendshipDTO friendship) { var friendshipService = new FriendshipService(); FriendshipDTO friendshipDTO = friendshipService.AddFriendship(friendship); if (friendshipDTO == null) { return(NotFound()); } return(Ok(friendshipDTO)); }