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)); }
public async Task <TableResponseCommon <TaskDomain> > GetTasks(TaskSearchParams searchParams) { return(await _taskService.SelectTasksAsync(searchParams).ConfigureAwait(true)); }
public Task <TableResponseCommon <TaskDomain> > SelectTasksAsync(TaskSearchParams searchParams) { return(_tasksRepository.SelectTasksAsync(searchParams)); }