Example #1
0
        public async Task <IActionResult> EditCompaniesForUser(string userId)
        {
            var user = _userManager.FindByIdAsync(userId).Result;

            if (user == null && !string.IsNullOrEmpty(userId))
            {
                return(NotFound());
            }
            var usercompanies = await _companyuser_repo.GetAssignedEditCompanies(userId);

            return(PartialView(usercompanies));
        }