Exemplo n.º 1
0
        public IActionResult PracticeAspForList()
        {
            var model = new PracticeAspForListViewModel()
            {
                Employees = new System.Collections.Generic.List <Employee>()
                {
                    new Employee()
                    {
                        Id       = Guid.NewGuid(),
                        Name     = "Emp 1",
                        Contract = Contract.B2B
                    },
                    new Employee()
                    {
                        Id       = Guid.NewGuid(),
                        Name     = "Emp 2",
                        Contract = Contract.Intern
                    }
                }
            };

            return(View(model));
        }
Exemplo n.º 2
0
 public IActionResult PracticeAspForList(PracticeAspForListViewModel model)
 {
     return(View());
 }