public IActionResult JoinCircle(string userId, string circleId) { //The User who wants to blacklist var user = _userService.Get(userId); var circle = _circleService.Get(circleId); if (user == null) { return(BadRequest("User not found")); } if (circle == null) { return(BadRequest("Circle not found")); } user.Circles.Add(circleId); circle.UsersId.Add(userId); return(NoContent()); }
public ActionResult <List <Circle> > Get() { return(_circleServices.Get()); }