public void AddRequiredFile(dtoCallRequestedFile dto) { try { RequestedFile file = CallService.AddRequestedFile(View.IdCall, dto); if (file == null) { View.DisplayError(EditorErrors.AddingRequestedFile); } else { if (View.CallType == CallForPaperType.CallForBids) { View.SendUserAction(View.IdCommunity, View.IdCallModule, View.IdCall, ModuleCallForPaper.ActionType.AddRequestedFile); } else { View.SendUserAction(View.IdCommunity, View.IdCallModule, View.IdCall, ModuleRequestForMembership.ActionType.AddRequestedFile); } } } catch (SubmissionLinked ex) { View.DisplayError(EditorErrors.AddingRequestedFile); } LoadRequiredFiles(View.IdCall); }