public ActionResult AccountList(string type) { using (WakilRecouvContext WakilContext = new WakilRecouvContext()) { using (UnitOfWork UOW = new UnitOfWork(WakilContext)) { EmployeService EmpService = new EmployeService(UOW); RoleService RoleService = new RoleService(UOW); var Roles = RoleService.GetAll(); ViewBag.RoleList = new SelectList(Roles, "RoleId", "role"); if (type == "0") { return(View(EmpService.GetAll())); } else if (type == "1") { return(View(EmpService.GetEmployeByVerified(true))); } else if (type == "2") { return(View(EmpService.GetEmployeByVerified(false))); } else { return(View(EmpService.GetAll())); } } } }