public async Task <IActionResult> UpdateMerchantRedirectionUrl([FromBody] MerchantRedirectionDto MerchantRedirectionDto) { try { if (!string.IsNullOrEmpty(MerchantRedirectionDto.MerchantRedirectionUrl)) { await _MerchantService.UpdateMerchantRedirectionDetails(MerchantRedirectionDto); } else { return(BadRequest(new GenericResultDto <string> { Result = "MerchantRedirectionUrl" })); } } catch (Exception err) { return(BadRequest(new GenericResultDto <string> { Result = err.Message })); } return(Ok(new GenericResultDto <string> { Result = "Merchant redirection URL updated successfully" })); }