public async Task <bool> IsGoalSetAsync(GoalRequest goal) { bool isGoalSet = false; var result = await GaugeRestConfig.baseUrl.AppendPathSegment(GoalPath + "/" + goal.ClubId + "/" + goal.MemberId).GetJsonAsync(); if (result.IsCompleted) { isGoalSet = result.Status; } return(isGoalSet); }
public async Task <List <Goal> > GetGoalsAsync(GoalRequest goalRequest) { List <Goal> data = null; var result = await GaugeRestConfig.baseUrl.AppendPathSegment(GoalPath + "/" + goalRequest.ClubId + "/" + goalRequest.MemberId).GetJsonAsync(); if (result.IsCompleted) { data = result.Result as List <Goal>; } return(data); }