public async Task SetStatusAsync(int id, TaskStatus status) { var resp = await _httpService.Client.PutAsync($"Todo/SetStatus/{id}", new StringContent($"status={(int)status}")); resp.ThrowHttpResponseExceptions(); }
public async Task <IEnumerable <TodoTask> > GetTasksAsync(TaskStatus status) { return(await _httpService.Client.GetJsonAsync <IEnumerable <TodoTask> >($"Todo/GetTasks/{(int)status}")); }