public ActionResult Create(Feed feed)
        {
            if (ModelState.IsValid)
            {
                feed.LastUpdated = DateTime.Now;
                context.Feeds.Add(feed);
                context.SaveChanges();
                return RedirectToAction("Index");
            }

            ViewBag.PossibleCategories = context.Categories;
            ViewBag.PossibleNewsSites = context.NewsSites;
            return View(feed);
        }
 public ActionResult Edit(Feed feed)
 {
     if (ModelState.IsValid)
     {
         context.Entry(feed).State = EntityState.Modified;
         context.SaveChanges();
         return RedirectToAction("Index");
     }
     ViewBag.PossibleCategories = context.Categories.ToList();
     ViewBag.PossibleNewsSites = context.NewsSites.ToList();
     return View(feed);
 }