LEIYI před 5 měsíci
rodič
revize
8c3d93784f

+ 2 - 2
OASystem/OASystem.Domain/ViewModels/Groups/InvitationOfficialActivitiesByIdView.cs

@@ -104,7 +104,7 @@ namespace OASystem.Domain.ViewModels.Groups
                     catch (Exception)
                     {
 
-                        array.AddRange(new string[] { Attachment });
+                        array = new List<string>() { Attachment }.ToArray();
                     }
                 }
                 return array;
@@ -227,7 +227,7 @@ namespace OASystem.Domain.ViewModels.Groups
                     catch (Exception)
                     {
 
-                        array.AddRange(new string[] { Attachment });
+                        array = new List<string>() { Attachment }.ToArray();
                     }
                 }
                 return array;

+ 1 - 2
OASystem/OASystem.Domain/ViewModels/Groups/InvitationOfficialActivitiesView.cs

@@ -109,8 +109,7 @@ namespace OASystem.Domain.ViewModels.Groups
                     }
                     catch (Exception)
                     {
-
-                        array.AddRange(new string[] { Attachment });
+                        array = new List<string>() { Attachment }.ToArray();
                     }
                 }
                 return array;