コード例 #1
0
        // GET: Aspects
        public ActionResult Insert()
        {
            var model = new AspectViewModel();

            model.Operation = "I";
            var resultD = _domainsManager.Get();

            ViewBag.Domains = (IEnumerable <DomainEntity>)resultD.Entity;

            var listTypes        = new List <SelectListItem>();
            var listTypesStrings = _enumManager.GetActionsTypes();

            foreach (var item in listTypesStrings)
            {
                var sItem = new SelectListItem
                {
                    Text  = item,
                    Value = item
                };
                listTypes.Add(sItem);
            }

            ViewBag.ListTypes = listTypes;


            return(View("InsertEdit", model));
        }
コード例 #2
0
        // GET: Domain
        public ActionResult Index()
        {
            var result = _domainsManager.Get();

            ViewBag.Domains = (IEnumerable <DomainEntity>)result.Entity;
            return(View("Index"));
        }
コード例 #3
0
 public ActionResult SelfAssessment()
 {
     ViewBag.Domains = _domainManager.Get().Entity;
     return(View());
 }