public async Task <IActionResult> Get([FromQuery] PaymentCheckoutModelRequest paymentCheckoutRequest)
        {
            var hostUrl = $"{HttpContext.Request.Scheme}://{HttpContext.Request.Host.Value}";

            var mapper = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <LiqPayCheckoutDto, LiqPayCheckoutViewModel>();
                cfg.CreateMap <PaymentCheckoutModelRequest, LiqPayCheckoutModelRequestDto>();
            })
                         .CreateMapper();


            var resultQueryString = new
            {
                paymentCheckoutRequest.MemberId
            }.ConvertToQueryString();


            var liqPayCheckoutModelDto = mapper.Map <LiqPayCheckoutModelRequestDto>(paymentCheckoutRequest);

            liqPayCheckoutModelDto.ResultUrl = $"{hostUrl}/profile/";


            liqPayCheckoutModelDto.ServerUrl = $"{hostUrl}/api/user/payment/checkout?{resultQueryString}";

            var liqPayCheckoutDto =
                await _liqPayService.GetLiqPayCheckoutModel(liqPayCheckoutModelDto);

            var liqPayCheckoutModel = mapper.Map <LiqPayCheckoutDto, LiqPayCheckoutViewModel>(liqPayCheckoutDto);

            return(Ok(liqPayCheckoutModel));
        }
        public async Task <IActionResult> Get([FromQuery] LiqPayCheckoutModelRequest liqPayCheckoutRequest)
        {
            var hostUrl = $"{HttpContext.Request.Scheme}://{HttpContext.Request.Host.Value}";
            var userId  = (await _authenticateService.TryGetAuthUser())?.Id;

            var mapper = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <LiqPayCheckoutDto, LiqPayCheckoutViewModel>();
                cfg.CreateMap <LiqPayCheckoutModelRequest, LiqPayCheckoutModelRequestDto>();
            })
                         .CreateMapper();


            var resultQueryString = new
            {
                DonatorId = userId,
                liqPayCheckoutRequest.ProjectId,
                liqPayCheckoutRequest.SocietyId
            }.ConvertToQueryString();

            var liqPayCheckoutModelDto = mapper.Map <LiqPayCheckoutModelRequestDto>(liqPayCheckoutRequest);

            liqPayCheckoutModelDto.ResultUrl = liqPayCheckoutRequest.ProjectId == null
                ? hostUrl
                : $"{hostUrl}/projects/{liqPayCheckoutRequest.ProjectId}";
            liqPayCheckoutModelDto.ServerUrl = $"{hostUrl}/api/donations/checkout?{resultQueryString}";

            var liqPayCheckoutDto =
                await _liqPayService.GetLiqPayCheckoutModel(liqPayCheckoutModelDto);

            var liqPayCheckoutModel = mapper.Map <LiqPayCheckoutDto, LiqPayCheckoutViewModel>(liqPayCheckoutDto);

            return(Ok(liqPayCheckoutModel));
        }