Exemple #1
0
        public ActionResult AssignAllContacts(Guid?id)
        {
            var contacts = ContactsSrvc.ListCandidates();

            foreach (var itm in contacts)
            {
                AssignmentSrvc.AssignmentContact_AddEdit(new AssignmentContact()
                {
                    AssignmentId = id.Value,
                    ContactId    = itm.Id
                });
            }

            return(RedirectToAction("AddEdit", new { id = id.Value }));
        }
Exemple #2
0
        public ActionResult Index()
        {
            List <Contact> model = contactSrvc.ListCandidates();

            return(View(model));
        }