Exemplo n.º 1
0
        public IActionResult Grid(TaskSearchModel model)
        {
            model = InitializeModel(model);
            var result = _taskApiClient.GetTasks(model).Result;

            return(PartialView(result));
        }
Exemplo n.º 2
0
        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]);
        }
Exemplo n.º 4
0
 public async Task <TaskSearchModel> GetTasks(TaskSearchModel model)
 {
     return(await _calendarTaskApiClient.GetTasks(model));
 }