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()); }
// GET: Staff public async Task <IActionResult> Index() { IList <Staff> staffs = await staffBusiness.getAllStaff(); return(View(staffs)); }