Пример #1
0
        public void dropdown()
        {
            var repo = new SalesTargetRepository();
            var List = repo.FillMonth();

            ViewBag.Month = new SelectList(List, "Id", "Name");

            var desrepo         = new SalesTargetRepository();
            var workDescription = desrepo.FillWorkDescription();

            ViewBag.workDes = new SelectList(workDescription, "Id", "Name");


            DropdownRepository repos = new DropdownRepository();
            var result = repos.OrganizationDropdown();

            ViewBag.OrganizationName = new SelectList(result, "Id", "Name");

            //  ViewBag.OrganizationName = new SelectList(new DropdownRepository().OrganizationDropdown(OrganizationId), "Id", "Name");
        }