public IHttpActionResult Unfollow(int id) { var userId = User.Identity.GetUserId(); if (!_interestRepository.IsInterested(id, userId)) { return(NotFound()); } _interestRepository.Remove(id, userId); return(Ok(id)); }
public IActionResult RemoveInterest(int interestId) { _repo.Remove(interestId); return(Ok()); }