In webforms i used to do this
Page.ClientScript.RegisterStartupScript(this.GetType(),"CallMyFunction","MyFunction()",true);
on mvc 5 how am i supposed to do this? I want to show a notification for example after something is inserted or updated in database
example i I have a controller
public class RecordsController : Controller
{
public ActionResult Post()
{
// Insert record in database and return rows modified
// Show notification
}
}