public ActionResult AddProviderEndpoint(int id, ProviderEndpointModel model) { // Add endpoint _applications.AddEndpoint(id, model, LoggedInUser); // Setup status message Toastr.Success("Provider endpoint was successfully created! You can add data agreement for this schema now."); // Return result return(RedirectToAction("Details", new { id })); }