Esempio n. 1
0
        public void SuggestionDoesNotComply(Student student, Suggestion suggestion)
        {
            suggestion.ToNewState();

            //send for notivication
            UserHelper.NotifyStakeholderSuggestionDeclined(student);
        }
        public ActionResult Index(Student student)
        {
            if (student != null)
            {
                return View(_suggestionRepository.FindByUser(student.Id));
            }

            return View(_suggestionRepository.FindAll());
        }
Esempio n. 3
0
        public void AskAdviseBpc(Student student, Suggestion suggestion)
        {
            //Set state 
            suggestion.ToAdviceBpcState();
            var bpc = new BPCoordinator();
            //INSERT NOTIFY STAKEHOLDERS HERE
            UserHelper.NotifyStakeholderAdviceBpcNeeded(bpc);


        }
Esempio n. 4
0
        public void GiveFeedback(String feedback, Student student, Suggestion suggestion, String state)
        {
            //Put all other feedbacks to not visable
            foreach (var f in suggestion.Feedbacks)
            {
                f.Visable = false;
            }
            //Add the new feedback
            suggestion.Feedbacks.Add(new Feedback(feedback));

            //Send notification
            UserHelper.NotifyStakeholderFeedbackGiven(student);

            //If state is approved the do this
            if (state == "Approve")
            {
                //To apprived state
                suggestion.ToApprovedWithRemarksState();
                //Send notification
                UserHelper.NotifyStakeholderSuggestionAcceptedWithRemarks(student);
            }

        }
Esempio n. 5
0
 public void SuggestionAccepted(Student student, Suggestion suggestion)
 {
     suggestion.ToApprovedState();
     UserHelper.NotifyStakeholderSuggestionAccepted(student);
 }
Esempio n. 6
0
 public List<String> GetFeedbackList(Student student)
 {
     return (from s in Students where s.FirstName == student.FirstName && s.LastName == student.LastName from suggestion in s.Suggestions from feedback in suggestion.Feedbacks select feedback.Inhoud).ToList();
 }
Esempio n. 7
0
 public void GiveInSuggestion(Student student, Suggestion suggestion)
 {
     suggestion.ToSubmittedState();
     UserHelper.NotifyStudentGivenSuggestion(student.Promotor);
 }