示例#1
0
        public async Task <ActionResult> RemoveLike(int friendId)
        {
            var userId = User.GetUserId();

            _likesRepository.DeleteLike(userId, friendId);

            if (await _likesRepository.SaveAllAsync())
            {
                return(Ok());
            }

            return(BadRequest("Unable to unlike user"));
        }