public IActionResult GetUserRoles(string customerId) { var model = new CustomerRoleViewModel() { Roles = _roleService.GetRoles(), UserRoles = _roleService.GetUserRoles(customerId), CustomerId = customerId }; var render = _viewEngineService.RenderPartialToStringAsync("~/Areas/Admin/Views/Permision/_RoleListPartial.cshtml", model); return(Json(new { status = true, html = render.Result })); }