Пример #1
0
        public IHttpActionResult Post(FriendshipDTO friendship)
        {
            var           friendshipService = new FriendshipService();
            FriendshipDTO friendshipDTO     = friendshipService.AddFriendship(friendship);

            if (friendshipDTO == null)
            {
                return(NotFound());
            }

            return(Ok(friendshipDTO));
        }