static async Task Main(string[] args) { //UserPlantUnitService service = new UserPlantUnitService(); //await service.GetAsync(ConstantsHelper.Token, ConstantsHelper.AppVersion); PlantUnitSampleService service = new PlantUnitSampleService(); var result = await service.PostAsync(ConstantsHelper.Token, ConstantsHelper.AppVersion, "CFP", "CFP-SEMI"); }
public async void OnNavigatedTo(INavigationParameters parameters) { string plant = ""; string plantunit = ""; PLANTUNIT PLANTUNIT = parameters[nameof(PLANTUNIT)] as PLANTUNIT; plantunit = PLANTUNIT.PLANT_UNIT; UserPlantUnitDatum userPlantUnitDatum = parameters.GetValue <UserPlantUnitDatum>(nameof(UserPlantUnitDatum)) as UserPlantUnitDatum; plant = userPlantUnitDatum.PLANT; PlantUnitSampleService service = new PlantUnitSampleService(); var foo = await service.PostAsync(ConstantsHelper.Token, ConstantsHelper.AppVersion, plant, plantunit); PlantUnitSample = mapper.Map <PlantUnitSample>(foo); PageName = PLANTUNIT.CHINESE_UNIT_NAME; }