public async Task <IActionResult> Create() { //Busca lista de relatorios List <Report> reportList = await reportRepository.GetList(EnableEnum.Enabled); ViewBag.ReportId = reportList.Select(x => new SelectListItem { Text = x.Name, Value = x.Id.ToString() }).ToList(); ViewBag.ReportIdSelected = new MultiSelectList(String.Empty, "Text", "Value"); ViewBag.DatabaseTypeId = new SelectList(await databaseTypeRepository.GetList(EnableEnum.Enabled), "Id", "Name"); ViewBag.EnableSelect = databaseGDRRepository.GetSelectList(EnableEnum.All); return(View()); }
public async Task <IActionResult> Index(bool registroApagado) { var databaseType = await databaseTypeRepository.GetList(EnableEnum.All); if (registroApagado) { ViewBag.RegistroApagado = "<p>Registro apagado com sucesso </p>"; } return(View(databaseType)); }