private void LoadAvailableItemsToAdd(dtoBaseForPaper call) { List <CallAssignmentType> itemsToAdd = new List <CallAssignmentType>(); if (call.IsPortal) { itemsToAdd.Add(CallAssignmentType.PersonType); } else { itemsToAdd.Add(CallAssignmentType.Person); } List <Int32> removeCommunities = CallService.GetIdCommunityAssignments(call.Id); removeCommunities.Add((call.IsPortal && call.Community == null) ? 0 : call.Community.Id); if (CommunityService.HasAvailableCommunitiesByModule(UserContext.CurrentUserID, true, removeCommunities)) { itemsToAdd.Add(CallAssignmentType.Community); } if (CallService.ExistCallWithSubmissions(call.Id, call.Type, View.IdCommunity, call.IsPortal)) { itemsToAdd.Add(CallAssignmentType.SubmitterOfBaseForPaper); } View.LoadAvailableAssignments(itemsToAdd); }