August 2018
Intermediate to advanced
298 pages
5h 33m
English
Scenario
You're working on implementing the MVC pattern in your project. You want to generate static data from the action and pass it to the partial view as a model.
Aim
Generate static data from the action and pass it to the partial view as a model.
Steps for completion
public class Employee{ public int Id { get; set; } public string Name { get; set; }}
public IActionResult Index2(){ var employees = new List<Employee> { new Employee { Id = 10012 , Name = "John Skeet"}, new Employee { Id = 10013 , Name = "Scott Guthrie"}, ...Read now
Unlock full access