コード例 #1
0
        public ActionResult Modal(ContactType contactType = ContactType.General, ContactViewModes viewMode = ContactViewModes.Full, bool enableTypeModification = false)
        {
            var model = new ContactViewModel()
            {
                Type     = contactType,
                ViewMode = viewMode,
                EnableTypeModification = enableTypeModification
            };

            model = BuildModel(model);

            IEnumerable <VizierType> vvtype = VizierType.GetAll();

            model.VizierTypeSelect = new SelectList(
                vvtype
                , "Name" // Id
                , "Name");

            return(PartialView(model));
        }
コード例 #2
0
        public ActionResult AddVizier(ContactViewModes viewMode = ContactViewModes.Vizier, bool enableTypeModification = true)
        {
            var model = new ContactViewModel()
            {
                //Type = contactType,
                ViewMode = viewMode,
                EnableTypeModification = enableTypeModification
            };

            model = BuildModel(model);

            model.Type = ContactType.VizierUMTOP;

            IEnumerable <VizierType> vvtype = VizierType.GetAll();

            model.VizierTypeSelect = new SelectList(
                vvtype
                , "Name" // Id
                , "Name");



            return(View("ManagerVizier", model));
        }