Hi,
How to navigate from one action method to another in jquery ajax.
I have form where i submit record and after successsfull ajax call, i want to navigate to another action.
I have used but not moving to another action.
$.ajax({
url: '@Url.Action("AddProviderSpecialities","Provider")',
type: "POST",
data: clr,
success: function (res) {
window.location.href = '@Url.Action("List","Provider")'
},
failure: function (error) {
$.toast({
heading: 'Error',
text: res.message,
showHideTransition: 'fade',
icon: 'error'
});
}