public ActionResult Index(int?noDelete)
        {
            _iCommonService.GetPageWiseRoleRigths("PaymentMethod");
            List <PaymentMethodModel> paymentMethodModel = new List <PaymentMethodModel>();

            paymentMethodModel = _iPaymentMethodService.GetPaymentMethodList().ToList();
            if (noDelete != null)
            {
                ViewBag.Result = _locService.GetLocalizedHtmlString("Can not delete reference available.");
            }
            return(View(paymentMethodModel));
        }
        public async Task <IActionResult> GetPaymentMethodList()
        {
            try
            {
                var response = await _service.GetPaymentMethodList();

                if (response != null)
                {
                    return(Ok(response));
                }
                return(StatusCode(StatusCodes.Status204NoContent));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }