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

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

            return(PartialView(modelView));
        }