public IActionResult Grid(TaskSearchModel model) { model = InitializeModel(model); var result = _taskApiClient.GetTasks(model).Result; return(PartialView(result)); }
private async Task <TaskDto> TaskDto(string tasktype) { var tasks = await _taskApiClient.GetTasks(_employerAccountId, string.Empty); var tasksbyAccountid = tasks.ToList(); return(tasksbyAccountid.FirstOrDefault(x => x.EmployerAccountId == _employerAccountId && x.Type == tasktype)); }
public async Task <IEnumerable <TaskDto> > GetAccountTasks(long accountId, string externalUserId) { try { return(await _apiClient.GetTasks(accountId.ToString(), externalUserId)); } catch (Exception ex) { _logger.Error(ex, "Could not retrieve account tasks successfully"); } return(new TaskDto[0]); }
public async Task <TaskSearchModel> GetTasks(TaskSearchModel model) { return(await _calendarTaskApiClient.GetTasks(model)); }