Beispiel #1
0
        public async Task <IHttpActionResult> ChangeAllowSeeTree(string friendId, bool canSeeTree)
        {
            UnitOfWork        uow     = new UnitOfWork(new ApplicationDbContext());
            FriendshipService service = new FriendshipService(uow);
            var userId = User.Identity.GetUserId();

            service.ChangeAllowSeeTree(userId, friendId, canSeeTree);
            uow.Commit();
            return(Ok());
        }