public async Task <IActionResult> Edit(string id) { string ids = userId; TempData["Id"] = ids; List <SelectListItem> items = new List <SelectListItem> { new SelectListItem("DPO", "DPO") { Selected = true }, new SelectListItem("StakeHolder", "StakeHolder"), new SelectListItem("RSGSI", "RSGSI"), new SelectListItem("Standard", "Standard") }; Account account = await accountHelper.GetById(id); SelectList li = new SelectList(items); ViewBag.AccountType = items; account.Assignements = await accountHelper.AssignementsbyAccountIdAsync(id); //ViewBag.AccountId = id; await Task.Delay(0); return(View(account)); }
public async Task <IActionResult> EditUserAccount() { Account account = await accountHelper.GetById(acccountId); ViewBag.accountType = account.AccountType.ToString(); string ids = userId; TempData["Id"] = ids; await Task.Delay(0); return(View()); }
public async Task <IActionResult> RequestAutoAsync() { Account account = await accountHelper.GetById(acccountId); ViewBag.accountType = account.AccountType.ToString(); //string ids = TempData["Id"] as string; //TempData["Id"] = ids; return(View()); }
public async Task <IActionResult> RequestTrasf() { await Task.Delay(0); string ids = this.userid; TempData["Id"] = ids; Account account = await accountHelper.GetById(acccountId); ViewBag.accountType = account.AccountType.ToString(); // RichiestaTrasf rich = new RichiestaTrasf(); // ICollection<Request> list = await requestHelper.RequestsAsync(); //ViewBag.lista = list; List <Richieste> ric = new List <Richieste>(); Richieste richiestaTrasf = new Richieste(); richiestaTrasf.AccountId = ids; ric.Add(richiestaTrasf); return(View(ric)); }