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()); }
public void AskAdviseBpc(Student student, Suggestion suggestion) { //Set state suggestion.ToAdviceBpcState(); var bpc = new BPCoordinator(); //INSERT NOTIFY STAKEHOLDERS HERE UserHelper.NotifyStakeholderAdviceBpcNeeded(bpc); }
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); } }
public void SuggestionAccepted(Student student, Suggestion suggestion) { suggestion.ToApprovedState(); UserHelper.NotifyStakeholderSuggestionAccepted(student); }
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(); }
public void GiveInSuggestion(Student student, Suggestion suggestion) { suggestion.ToSubmittedState(); UserHelper.NotifyStudentGivenSuggestion(student.Promotor); }