public async Task <IActionResult> Index() { //GET LIST OF sujets CompteModel compte = _compteService.GetConnectedCompte(HttpContext.Session); List <UserModel> result = await _userService.GetListUserByManagerAsync(HttpContext.Session, compte.User.Id.GetValueOrDefault(0)); List <SujetModel> sujets = await _sujetService.GetListAsync(HttpContext.Session); ViewBag.lstsujets = sujets ?? new List <SujetModel>(); ViewBag.lstUser = result ?? new List <UserModel>(); return(View()); }
// GET: /<controller>/ public async Task <IActionResult> ListeAsync() { //GET LIST OF USER By manager List <SujetModel> sujets = await _sujetService.GetListAsync(HttpContext.Session); ViewBag.lstsujets = sujets ?? new List <SujetModel>(); return(View()); }