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

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