Пример #1
0
        public IActionResult AddUser()
        {
            UserInfo userInfo = new UserInfo()
            {
                Id = new Guid()
            };
            var deptList = _deptService.GetAll();

            ViewBag.DeptList = deptList;
            return(View(userInfo));
        }
Пример #2
0
        public async Task <IActionResult> Index()
        {
            IEnumerable <Department> deptList = await _deptService.GetAll();

            return(View(deptList));
        }