public ActionResult DeleteConfirmed(Guid id)
        {
            JellyBeanValue jellyBeanValue = db.JellyBeanValues.Find(id);

            db.JellyBeanValues.Remove(jellyBeanValue);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Name,Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec")] JellyBeanValue jellyBeanValue)
 {
     if (ModelState.IsValid)
     {
         db.Entry(jellyBeanValue).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(jellyBeanValue));
 }
        public ActionResult Create([Bind(Include = "Id,Name,Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec")] JellyBeanValue jellyBeanValue)
        {
            if (ModelState.IsValid)
            {
                jellyBeanValue.Id = Guid.NewGuid();
                db.JellyBeanValues.Add(jellyBeanValue);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(jellyBeanValue));
        }
        // GET: JellyBeans/Edit/5
        public ActionResult Edit(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            JellyBeanValue jellyBeanValue = db.JellyBeanValues.Find(id);

            if (jellyBeanValue == null)
            {
                return(HttpNotFound());
            }
            return(View(jellyBeanValue));
        }