public void AddOption(List <dtoCallSection <dtoCallField> > sections, long idField, String name, Boolean isDefault, Boolean isFreeText) { if (UserContext.isAnonymous) { View.DisplaySessionTimeout(); } else { CallForPaperType type = View.CallType; long idCall = View.IdCall; Int32 idCommunity = View.IdCommunity; FieldOption option = CallService.AddOptionToField(idField, sections, name, isDefault, isFreeText); if (option == null) { View.DisplayError(EditorErrors.AddingOption); } else { if (View.CallType == CallForPaperType.CallForBids) { View.SendUserAction(idCommunity, View.IdCallModule, idCall, ModuleCallForPaper.ActionType.AddFieldOption); } else { View.SendUserAction(idCommunity, View.IdCallModule, idCall, ModuleRequestForMembership.ActionType.AddFieldOption); } View.ReloadEditor(RootObject.CallSubmissionEditorOptionAdded(option.Id, type, idCall, idCommunity, View.PreloadView)); } } }