Beispiel #1
0
        public void Vote(VotingDTO voting)
        {
            voting.Staff      = _staffService.GetByID(voting.Staff.Id);
            voting.Restaurant = _restaurantService.GetByID(voting.Restaurant.Id);

            VerifyVotingFinished(voting);
            RestartVotingLastWeek(voting);
            VerifyChosenRestaurantOfWeek(voting);
            VerifyIfEmployeeVoted(voting);

            _votingService.Save(voting);
        }