public OrganizationListViewModel(ElcutBusinessContext context) { var typesList = new List <OrganizationType>(context.OrganizationManager.GetTypes()); typesList.Insert(0, new OrganizationType { ID = 0, Name = "все" }); this.Types = typesList; }
protected override void OnActionExecuting(ActionExecutingContext filterContext) { this.BusinessContext = new ElcutBusinessContext(); base.OnActionExecuting(filterContext); }