public async Task <Result <CheckLinkageServiceExistsResponse> > Handle(CheckLinkageServiceExistsCommand request, CancellationToken cancellationToken)
        {
            using (_queueUnitOfWork)
            {
                try
                {
                    var LinkageServiceArea = await _queueUnitOfWork.Repository <ServiceRoom>().Get(x => x.ServiceAreaid == request.ServiceAreaId && x.ServicePointId == request.ServicePointId && x.RoomId == request.RoomId && x.DeleteFlag == false).ToListAsync();

                    if (LinkageServiceArea.Count > 0)
                    {
                        servicerooms = LinkageServiceArea;
                        exist        = true;
                    }
                    else
                    {
                        exist = false;
                    }

                    return(Result <CheckLinkageServiceExistsResponse> .Valid(new CheckLinkageServiceExistsResponse()
                    {
                        Exists = exist,
                        ServiceRooms = servicerooms
                    }));
                }
                catch (Exception e)
                {
                    Log.Error(e.Message);
                    return(Result <CheckLinkageServiceExistsResponse> .Invalid(e.Message));
                }
            }
        }
        public async Task <IActionResult> CheckRoomLinkageExists([FromBody] CheckLinkageServiceExistsCommand command)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState.Values.Select(x => x.Errors)));
            }

            var response = await _mediator.Send(command, HttpContext.RequestAborted);

            if (!response.IsValid)
            {
                return(BadRequest(response));
            }

            return(Ok(response.Value));
        }