public IActionResult UnFollow(int userId) { if (userId <= 0) { return(BadRequest($"{nameof(userId)} must be lower than 1")); } if (!_followerService.TryFindByUserAndFollowsId(User.GetId(), userId, out var follower)) { return(NotFound($"The user doesn't follow a user with Id {userId}")); } _followerService.Remove(follower.Id); _unitOfWork.SaveChanges(); return(Ok()); }