Ejemplo n.º 1
0
        public ActionResult Create()
        {
            var modelView = new CreateEditEmployeesViewModel {
                Roles = _employeesRoleService.GetBaseSelectListEmployeesRole(_employeesRoleService.GetAll())
            };

            return(View(modelView));
        }
Ejemplo n.º 2
0
        public ActionResult OnlineOrder()
        {
            var modelView = new EmployeesViewModel
            {
                employeesRoles = _employeesRoleService.GetAll(),
                employees      = _employeesService.GetAll(),
            };

            return(PartialView(modelView));
        }