Пример #1
0
        public IActionResult Index(Guid id)
        {
            if (id == Guid.NewGuid() || id == Guid.Empty)
            {
                return(NotFound());
            }

            var company = _iCompanyAppService.FindCompany(id);

            if (company == null)
            {
                return(NotFound());
            }

            return(View("Index", company));
        }
        public IActionResult _ListEmployees(Guid id)
        {
            var company = _iCompanyAppService.FindCompany(id);

            return(PartialView("_ListEmployees", company.EmployeeViewModel));
        }