-1
I am creating an APS.NET CORE form with C# and Sqlserver sending email and one of the fields is a dropdownlist that lists data from a table.
List<Templates> templates = new List<Templates>();
templates = _context.Templates.ToList();
ViewBag.languageTemplates = templates;
return View();
The "templates" list is populated with table data, but Viewbag returns NULL in the View. Could someone give me a hand, I’m learning this technology now.