public IActionResult ListByUser(Guid userId) { OperationResultListVo <TeamViewModel> serviceResult = (OperationResultListVo <TeamViewModel>)teamAppService.GetByUserId(userId); List <TeamViewModel> model = serviceResult.Value.ToList(); foreach (TeamViewModel team in model) { team.Permissions.CanEdit = team.Permissions.CanDelete = false; } return(PartialView("_List", model)); }