Exemple #1
0
        private async Task DisplayStaffAndTicketStatus()
        {
            IList <Staff> staffs = await staffBusiness.getAllStaff();

            IList <TicketStatus> ticketStatuses = await ticketStatusBusiness.getAlTicketStatuses();

            ViewData["idStaffAssignedTo"] = SelectListHelper.SelectListStaffs(staffs);
            ViewData["idCustomers"]       = SelectListHelper.SelectListCutomers(await customerBusiness.getAllCustomer());
            ViewData["idTicketStatus"]    = SelectListHelper.SelectListTicketStatuses(ticketStatuses);
            ViewData["idCountry"]         = SelectListHelper.SelectListCountries(await countryBusiness.GetCountries());
        }
Exemple #2
0
        // GET: Staff
        public async Task <IActionResult> Index()
        {
            IList <Staff> staffs = await staffBusiness.getAllStaff();

            return(View(staffs));
        }