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

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

            return(PartialView(roles));
        }