public IQueryable <Board> Search(BoardSearchRequest searchRequest, Guid companyGuid) => _dbContext .Boards .AsNoTracking() .NotDeleted() .ForCompany(companyGuid) .ForBoard(searchRequest.Guid) .ForTeam(searchRequest.TeamGuid) .AsQueryable();
public async Task <IActionResult> Search([FromQuery] BoardSearchRequest model) { if (ModelState.IsValid) { InitUserCredentials(); var results = _mapper.Map(_boardService.Search(model, CompanyGuid), new List <BoardResponse>()); var response = new BoardSearchResponse() { Data = results }; return(Ok(response)); } return(new NoContentResult()); }