// 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)); }
// GET: Domain public ActionResult Index() { var result = _domainsManager.Get(); ViewBag.Domains = (IEnumerable <DomainEntity>)result.Entity; return(View("Index")); }
public ActionResult SelfAssessment() { ViewBag.Domains = _domainManager.Get().Entity; return(View()); }