private void SendNotification(int transportOrderId, string transporterName) { try { string destinationURl; if (Request.Url.Host != null) { if (Request.Url.Host == "localhost") { destinationURl = "http://" + Request.Url.Authority + "/Logistics/Delivery/Dispatches/" + transportOrderId; return; } destinationURl = "http://" + Request.Url.Authority + Request.ApplicationPath + "/Logistics/Delivery/Dispatches/" + transportOrderId; _notificationService.AddNotificationForProcurmentForGRNDiscripancy(destinationURl, transportOrderId, transporterName); } } catch (Exception) { throw; } }