Projekt

Obecné

Profil

« Předchozí | Další » 

Revize a35cb648

Přidáno uživatelem Vojtěch Bartička před asi 2 roky(ů)

Added comments to backend

Zobrazit rozdíly:

Backend/Core/Services/DocumentService/DocumentServiceEF.cs
63 63
        }
64 64

  
65 65
        /// <summary>
66
        /// 
66
        /// Process a zip file and returns a list of names and documents
67 67
        /// </summary>
68 68
        /// <param name="base64encoded"></param>
69 69
        /// <returns></returns>
......
91 91
            return (names, contents);
92 92
        }
93 93

  
94
        /// <summary>
95
        /// Save a document in the database
96
        /// </summary>
97
        /// <param name="content"></param>
98
        /// <param name="userAdded"></param>
99
        /// <param name="documentName"></param>
100
        /// <param name="requiredAnnotations"></param>
94 101
        private void SaveDocument(string content, User userAdded, string documentName, int requiredAnnotations)
95 102
        {
96 103
            DocumentContent documentContent = new DocumentContent()
......
140 147
                }
141 148

  
142 149
                DocumentListInfo dli = mapper.Map<DocumentListInfo>(document);
150
                // Add list of users taht annotate the document
143 151
                dli.AnnotatingUsers = annotatingUsersDto;
144 152

  
153
                // Add info about the finalized version
145 154
                dli.FinalizedExists = databaseContext.FinalAnnotations.Any(fa => fa.Document == document);
146 155
                if (dli.FinalizedExists)
147 156
                {
......
154 163
                    dli.FinalizedState = finalizedAnnotation.State;
155 164
                    dli.FinalAnnotations = new();
156 165

  
166
                    // Add information about which annotations were used to create the finalized version
157 167
                    foreach (var annotation in finalizedAnnotation.Annotations)
158 168
                    {
159 169
                        dli.FinalAnnotations.Add(new()

Také k dispozici: Unified diff