public ActionResult <IEnumerable <DealReadDto> > GetDealByFilter([FromBody] DealQueryReadDto query) { var dealItems = _repository.GetDealByFilter(query.fromDt, query.toDt, query.transaction, query.product); if (dealItems != null) { return(Ok(_mapper.Map <IEnumerable <DealReadDto> >(dealItems))); } return(NotFound()); }