public HttpResponse AddToCollection(string playerId) { if (!User.IsAuthenticated) { return(Redirect("/Users/Login")); } var id = this.User.Id; var checkForErrors = playerService.AddplayerToUserCollection(this.User.Id, playerId); if (!string.IsNullOrEmpty(checkForErrors) || !string.IsNullOrWhiteSpace(checkForErrors)) { return(Error(checkForErrors)); } return(Redirect("/Players/All")); }