コード例 #1
0
 public ViewResult Edit(EmployeeModel employee)
 {
     ViewBag.Departments  = new SelectList(deptRepository.GetAllDepartments(), "DepartmentID", "Name", employee.DepartmentName);
     ViewBag.Branches     = new SelectList(branchRepository.GetAllBranches(), "BranchID", "Name", employee.AssignedBranchName);
     ViewBag.Managers     = new SelectList(services.GetAllManagers(), "ManagerID", "Name", employee.ManagerName);
     ViewBag.Designations = new SelectList(desigRepository.GetAllDesignations(), "DesignationID", "Name", employee.DesignationName);
     return(View(employee));
 }
コード例 #2
0
        public GameController()
        {
            m_gameRepository = new GameRepository();
            BranchRepository        branchRepo = new BranchRepository();
            PriceCategoryRepository priceRepo  = new PriceCategoryRepository();

            m_branches        = branchRepo.GetAllBranches();
            m_priceCategories = priceRepo.GetAllPriceCategories();
        }
コード例 #3
0
ファイル: LoginForm.cs プロジェクト: ravarador/BoozewasherApp
        private void LoadBranchesToCombobox()
        {
            var branches = BranchRepository.GetAllBranches();

            foreach (var branch in branches)
            {
                comboBranch.Items.Add($"{branch.Id} - {branch.Name}");
            }
        }
コード例 #4
0
 //
 // GET: /Branch/
 public ViewResult List()
 {
     return(View(repository.GetAllBranches()));
 }
コード例 #5
0
        // GET: Branch
        public ActionResult Index()
        {
            var branches = m_branchRepository.GetAllBranches();

            return(View(branches));
        }
コード例 #6
0
ファイル: BranchService.cs プロジェクト: rottor171/crsproj
        public async Task <List <Branch> > GetAllBranches()
        {
            List <Branch> list = await _branchRepository.GetAllBranches();

            return(list);
        }