public ActionResult Edit(int id)
 {
     ILinkDAC dac = new LinkDAC();
     var link = dac.Get(id);
     var model = new LinkEdit { LinkID = link.LinkID, SortOrder = link.SortOrder, Note = link.Note, Title = link.Title, URL = link.URL };
     return View(model);
 }
 public ActionResult Edit(LinkEdit link)
 {
     if (!ModelState.IsValid)
         return View(link);
     ILinkDAC dac = new LinkDAC();
     dac.Update(link.LinkID, link.URL, link.Title, link.Note, link.SortOrder);
     return RedirectToAction("Index");
 }