예제 #1
0
        //Erstellt einen Vote für einen User und gibt die Anzahl der Votes zurück
        public int vote(int userID)
        {
            UserConcern.Add(new UserConcern
            {
                UserId    = userID,
                ConcernId = Id
            });
            int votes = UserConcern.Count;

            return(votes);
        }
예제 #2
0
        public int vote(int userID)
        {
            UserConcern.Add(new Models.UserConcern
            {
                UserId    = userID,
                ConcernId = this.Id
            });
            int votes = UserConcern.Count;

            return(votes);
        }