Esempio n. 1
0
        public async Task <TableResponseCommon <TaskDomain> > SelectTasksAsync(TaskSearchParams searchParams)
        {
            var query = _taskRepository
                        .Find()
                        .Where(x => searchParams.State == null || x.State == searchParams.State)
                        .Select(x => new TaskDomain
            {
                Priority    = x.Priority,
                State       = x.State,
                AddedDate   = x.AddedDate,
                DueDate     = x.DueDate,
                Description = x.Description,
                Id          = x.Id
            });

            return(await query.ToTableResponseAsync(searchParams).ConfigureAwait(false));
        }
Esempio n. 2
0
 public async Task <TableResponseCommon <TaskDomain> > GetTasks(TaskSearchParams searchParams)
 {
     return(await _taskService.SelectTasksAsync(searchParams).ConfigureAwait(true));
 }
Esempio n. 3
0
 public Task <TableResponseCommon <TaskDomain> > SelectTasksAsync(TaskSearchParams searchParams)
 {
     return(_tasksRepository.SelectTasksAsync(searchParams));
 }