public ActionResult Detail(int id)
        {
            Organization       model               = orgrep.Get(id);
            List <Participant> AllParticipant      = partrep.List();
            List <Participant> filteredParticipant = new List <Participant>();

            foreach (var part in AllParticipant)
            {
                if (model.OrganizationParticipant.Where(c => c.ParticipantId == part.Id).Count() <= 0)
                {
                    filteredParticipant.Add(part);
                }
            }
            ViewData["AllParticipants"] = filteredParticipant;


            return(View(model));
        }
예제 #2
0
        public ActionResult ListParticipant()
        {
            List <Participant> model = partRep.List();

            return(View(model));
        }