@page "/employees"
Név |
Település |
Fizetés |
@foreach (var emp in emps)
{
@emp.name |
@emp.city |
@emp.salary |
}
@using Data
@code {
Employee[] emps = new Employee[] {
new Employee() {name= "Róbert", city = "Szeged", salary = 2475000},
new Employee() {name= "Tamás", city = "Szolnok", salary = 2475000}
};
}