#region Task tracking
        public async Task<IActionResult> QueueTracking()
        {
            var taskStatus = await _mediator.Send(new GetTaskDescription.Command());
            var select = new List<SelectListItem>() { new SelectListItem { Value = "", Text = "All", Selected = true } };
            if (taskStatus.Data.Any())
            {
                select.AddRange(taskStatus.Data.Select(x => new SelectListItem { Value = x.Value.ToString(), Text = x.Description }).ToList());
            }
            //ViewData["TaskStatus"] = select;
            ViewData["TaskStatus"] = new SelectList(select, "Value", "Text");
            return View();
        }

        [HttpPost]
        public async Task<IActionResult> QueueTrackingSearch(TrackingQueue.Command command)
        {
            var data = (await _mediator.Send(command)).Data;
            return Ok(data);
        }
        #endregion


Store SQL

EXEC SalePlatform..[SPF_QUEUE_RP_TaskTracking]
    @pViewBy = 0,@pValue = NULL,@pStatus = null,@pTaskStatus = null,@pFromDate = '2022/06/01',@pToDate = '2022/06/05',@pPageIndex = 1,@pPageSize = 50