public async Task <Response> GetAllBlocks(GetAllBlocksViewModel model) { var getAllBlocksCommand = _mapper.Map <GetAllBlocksCommand>(model); return(await _mediator.Send(getAllBlocksCommand)); }
public async Task <Response> GetAll([FromQuery] GetAllBlocksViewModel model) { return(await _blockService.GetAllBlocks(model)); }