'Update Image when the path string changes in the database ASP.NET MVC

I'm trying to build a navbar with an image in it, but I want to have the image change (essentially just the src) when it is updated in the database. Like I can have two tabs, one for edit and one for some random view with the navbar in it, and when I submit the form in "edit", I want the image on the other tab to automatically update without refreshing the whole page.

As far as I know, you need to send another model to the view so the update can happen, but I cannot work out a way on how to do that. Sorry if this is a beginner question. Any help is appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source