public async Task <TaskDto> GetTask(int id) { return(await _calendarTaskApiClient.GetTask(id)); }
public IActionResult Edit(int id) { var task = _taskApiClient.GetTask(id).Result; return(PartialView(task)); }