public async Task <IActionResult> FollowClan(ClanFollowDto clanFollowDto) { try { var user = await _userManager.GetUserAsync(User); if (user.ClanFollows.FirstOrDefault(f => f.ClanTag == clanFollowDto.Id) != null) { return(BadRequest()); } await _followService.AddClanFollowAsync(new ClanFollow { ClanName = clanFollowDto.ClanName, ClanTag = clanFollowDto.Id, Follower = user, }, user.Id); await _followService.SaveAllAsync(); } catch (Exception e) { return(BadRequest()); } return(Ok()); }