public ActionResult DailyEntryCreate(DailyDietEntry dailydietentry)
 {
     if (ModelState.IsValid) {
         ddeb.DailyDietEntry.Add(dailydietentry);
         ddeb.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(dailydietentry);
 }
 public ActionResult Edit(DailyDietEntry dailydietentry)
 {
     if (ModelState.IsValid)
     {
         db.Entry(dailydietentry).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(dailydietentry);
 }