File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ public async Task<MessagePerson[]> GetStaffFilterSearchResultAsync(string search
148148 {
149149 Method = HttpMethod . Post ,
150150 RequestUri = new Uri ( ServerUrl + $ "/WebUntis/api/rest/view/v2/messages/recipients/STAFF/filter") ,
151- Content = new StringContent ( sw . ToString ( ) )
151+ Content = new StringContent ( sw . ToString ( ) , Encoding . UTF8 , "application/json" )
152152 } ;
153153 request . Headers . Add ( "JSESSIONID" , _sessionId ) ;
154154 request . Headers . Add ( "schoolname" , _schoolName ) ;
@@ -169,7 +169,7 @@ public async Task<MessagePerson[]> GetStaffFilterSearchResultAsync(string search
169169 string responseString = await response . Content . ReadAsStringAsync ( ) ;
170170
171171 JObject obj = JObject . Parse ( responseString ) ;
172- return obj [ "users" ] . Value < List < MessagePerson > > ( ) . ToArray ( ) ;
172+ return obj [ "users" ] . ToObject < List < MessagePerson > > ( ) . ToArray ( ) ;
173173 }
174174
175175 /// <summary>
You can’t perform that action at this time.
0 commit comments