// // GET: /Projects/ public ActionResult Index() { YoutubeLinksLayer layers = new YoutubeLinksLayer(); List <YoutubeLink> list = layers.GetAllLinks(); return(View(list)); }
public ActionResult Create(FormCollection formCollection) { YoutubeLinksLayer layers = new YoutubeLinksLayer(); YoutubeLink ll = new YoutubeLink(); ll.Link = formCollection["Link"]; ll.Title = formCollection["Title"]; bool v = layers.AddNewLink(ll); RedirectToAction("Index", ); return(View()); }