File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,21 +155,11 @@ public IAsyncEnumerable<PartOfSpeech> GetPartsOfSpeech()
155155 return PartsOfSpeech . AsAsyncEnumerable ( ) ;
156156 }
157157
158- public IAsyncEnumerable < Publication > GetPublications ( )
159- {
160- return Publications . AsAsyncEnumerable ( ) ;
161- }
162-
163158 public async Task < PartOfSpeech ? > GetPartOfSpeech ( Guid id )
164159 {
165160 return await PartsOfSpeech . SingleOrDefaultAsync ( pos => pos . Id == id ) ;
166161 }
167162
168- public async Task < Publication ? > GetPublication ( Guid id )
169- {
170- return await Publications . SingleOrDefaultAsync ( p => p . Id == id ) ;
171- }
172-
173163 public async Task < PartOfSpeech > CreatePartOfSpeech ( PartOfSpeech partOfSpeech )
174164 {
175165 if ( partOfSpeech . Id == Guid . Empty ) partOfSpeech . Id = Guid . NewGuid ( ) ;
@@ -199,6 +189,16 @@ public async Task DeletePartOfSpeech(Guid id)
199189 await AddChange ( new DeleteChange < PartOfSpeech > ( id ) ) ;
200190 }
201191
192+ public IAsyncEnumerable < Publication > GetPublications ( )
193+ {
194+ return Publications . AsAsyncEnumerable ( ) ;
195+ }
196+
197+ public async Task < Publication ? > GetPublication ( Guid id )
198+ {
199+ return await Publications . SingleOrDefaultAsync ( p => p . Id == id ) ;
200+ }
201+
202202 public async Task < Publication > CreatePublication ( Publication pub )
203203 {
204204 await AddChange ( new CreatePublicationChange ( pub . Id , pub . Name ) ) ;
You can’t perform that action at this time.
0 commit comments