Пример #1
0
        public ActionResult FeedBack(int sessionId, int participantId)
        {
            var feedback        = new SessionRepository().Get(sessionId).session_participant.Where(x => x.ParticipantID == participantId).First().FeedBack;
            var sessionFeedBack = new SessionFeedBack {
                FeedBack = feedback, ParticipantId = participantId, SessionId = sessionId
            };

            return(View(sessionFeedBack));
        }
Пример #2
0
        public ActionResult FeedBack(SessionFeedBack model)
        {
            var repo         = new SessionRepository();
            var session      = repo.Get(model.SessionId);
            var sParticipant = session.session_participant.Where(x => x.ParticipantID == model.ParticipantId).First();

            sParticipant.FeedBack = model.FeedBack;
            repo.Put(session.Id, session);
            return(RedirectToAction("Index"));
        }