public IActionResult Add(string id, string name) { var fav = new Favourites() { Name = "Buzz", Id = id }; fav.AddToFile(); string referer = Request.Headers["Referer"].ToString(); return(Redirect(referer)); }
public IActionResult Add(string id, string name) { var fav = new Favourites() { Name = "Buzz", Id = id }; fav.AddToFile(); string referer = Request.Headers["Referer"].ToString(); return(Redirect(referer)); }