Example #1
0
 public void CloneSection(List <dtoCallSection <dtoCallField> > sections, long idSection)
 {
     if (UserContext.isAnonymous)
     {
         View.DisplaySessionTimeout();
     }
     else
     {
         CallForPaperType type        = View.CallType;
         long             idCall      = View.IdCall;
         Int32            idCommunity = View.IdCommunity;
         FieldsSection    section     = CallService.CloneSection(idCall, sections, idSection);
         if (section == null)
         {
             View.DisplayError(EditorErrors.CloningSection);
         }
         else
         {
             if (View.CallType == CallForPaperType.CallForBids)
             {
                 View.SendUserAction(idCommunity, View.IdCallModule, idCall, ModuleCallForPaper.ActionType.AddSectionToCall);
             }
             else
             {
                 View.SendUserAction(idCommunity, View.IdCallModule, idCall, ModuleRequestForMembership.ActionType.AddSectionToRequest);
             }
             View.ReloadEditor(RootObject.CallSubmissionEditorSectionAdded(section.Id, type, idCall, idCommunity, View.PreloadView));
         }
     }
 }