예제 #1
0
        public async Task <IHttpActionResult> AcceptedFollowersToFriend(string followerId)
        {
            UnitOfWork        uow     = new UnitOfWork(new ApplicationDbContext());
            FriendshipService service = new FriendshipService(uow);
            var userId = User.Identity.GetUserId();

            service.AcceptedFriends(userId, followerId);
            uow.Commit();
            return(Ok());
        }