コード例 #1
0
        public OrganizationListViewModel(ElcutBusinessContext context)
        {
            var typesList = new List <OrganizationType>(context.OrganizationManager.GetTypes());

            typesList.Insert(0, new OrganizationType {
                ID = 0, Name = "все"
            });
            this.Types = typesList;
        }
コード例 #2
0
ファイル: BaseController.cs プロジェクト: Irinagiv/Project
        protected override void  OnActionExecuting(ActionExecutingContext filterContext)
        {
            this.BusinessContext = new ElcutBusinessContext();

            base.OnActionExecuting(filterContext);
        }