public async Task SubmitCreate(int pilot, string st1, string st2) { InputCrew inputCrew = new InputCrew(); inputCrew.PilotId = pilot; int[] stews = { Convert.ToInt32(st1), Convert.ToInt32(st2) }; inputCrew.StewardessIds = stews; await cs.Create(inputCrew); this.Frame.Navigate(typeof(Crews)); }
public async Task Update(int id, InputCrew f) { string temp = path.ToString() + "/" + id.ToString(); await client.PutAsJsonAsync(temp, f); }
public async Task Create(InputCrew f) { await client.PostAsJsonAsync(path, f); }