public ActionResult Create(Beer beer)
 {
     try
     {
         beer.Type = "beer";
         beer.Updated = DateTime.Now;
         beer.Id = beer.Name.Replace(' ', '_').ToLower();
         Repository.Save(beer);
         return RedirectToAction("Index");
     }
     catch (CouchbaseDataException e)
     {
         ViewBag.Success = false;
         ViewBag.Message = e.Message;
         ViewBag.Status = e.Status;
         return View(beer);
     }
 }
 public ActionResult Edit(string id, Beer modified)
 {
     try
     {
         modified.Updated = DateTime.Now;
         Repository.Save(modified);
         return RedirectToAction("Index");
     }
     catch (CouchbaseDataException e)
     {
         ViewBag.Success = false;
         ViewBag.Message = e.Message;
         ViewBag.Status = e.Status;
         return View(modified);
     }
 }
 public void TestInsert()
 {
     var beer = new Beer();
 }