public static ResourceResponseModel Localize(this ILocalizeService localizeService, ResourceRequestModel requestModel)
        {
            var task = localizeService.LocalizeAsync(requestModel, CancellationToken.None);

            task.Wait();
            return(task.Result);
        }
Пример #2
0
 public async Task <ActionResult <ResourceResponseModel> > Localize(ResourceRequestModel model, CancellationToken cancel)
 {
     return(await localizeService.LocalizeAsync(model, cancel));
 }