public MessageResult handleMultipleEdited(List <TagModel> models, IUpdater <TagModel> updater) { var req_model = updater.createRequestModel(models.First()); var req = new MultipleTagUpdateRequest(models, req_model); return(APIRequest.updateMultipleTags(req).GetAwaiter().GetResult()); }
public static async Task <MessageResult> updateMultipleTags(MultipleTagUpdateRequest model) { var response = await client.PatchAsJsonAsync(TAGS + "/multi-id", model); return(await response.Content.ReadAsAsync <MessageResult>()); }