public async Task<string> GetChartData(byte id, double x, double y, GraphTypes z) { string data = string.Empty; switch (Growth) { case GrowthTypes.BFA: data = await ChartService.GetBfa(id, (byte)x, y, z).ConfigureAwait(false); break; case GrowthTypes.HCA: data = await ChartService.GetHcfa(id, (byte)x, y, z).ConfigureAwait(false); break; case GrowthTypes.LHFA: data = await ChartService.GetLhfa(id, (byte)x, y, z).ConfigureAwait(false); break; case GrowthTypes.MUAC: data = await ChartService.GetMuac(id, (byte)x, y, z).ConfigureAwait(false); break; case GrowthTypes.SSF: data = await ChartService.GetSsfa(id, (byte)x, y, z).ConfigureAwait(false); break; case GrowthTypes.TSF: data = await ChartService.GetTsfa(id, (byte)x, y, z).ConfigureAwait(false); break; case GrowthTypes.WFA: data = await ChartService.GetWfa(id, (byte)x, y, z).ConfigureAwait(false); break; case GrowthTypes.WFH: data = await ChartService.GetWfh(id, x, y, z).ConfigureAwait(false); break; case GrowthTypes.WFL: data = await ChartService.GetWfl(id, x, y, z).ConfigureAwait(false); break; } return data; }