Пример #1
0
        public MessageResult handleMultipleEdited(List <SongModel> models, IUpdater <SongModel> updater)
        {
            var req_model = updater.createRequestModel(models.First());
            var request   = new MultipleSongUpdateRequest(models, req_model);

            return(APIRequest.adminUpdateMultipleSongs(request).GetAwaiter().GetResult());
        }
Пример #2
0
        public static async Task <MessageResult> adminUpdateMultipleSongs(MultipleSongUpdateRequest model)
        {
            var response = await client.PatchAsJsonAsync(SONGS + "admin/multi-id", model);

            return(await response.Content.ReadAsAsync <MessageResult>());
        }