var type = "error"
switch (type) {
case 'info':
toastr.info(" You Need to Login First ");
break;
case 'success':
toastr.success(" You Need to Login First ");
break;
case 'warning':
toastr.warning(" You Need to Login First ");
break;
case 'error':
toastr.error(" You Need to Login First ");
break;
default:
break;
}