public ActionResult Create(WellCastLog wellcastlog)
        {
            if (ModelState.IsValid)
            {
                db.WellCastLogs.Add(wellcastlog);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(wellcastlog);
        }
        public void logError(string label, string message)
        {
            WellCastLog wellcastlog = new WellCastLog();

            wellcastlog.Label = label;
            wellcastlog.Message = message;
            wellcastlog.timeStamp = DateTime.Now;
            db.WellCastLogs.Add(wellcastlog);
            db.SaveChanges();
        }
 public ActionResult Edit(WellCastLog wellcastlog)
 {
     if (ModelState.IsValid)
     {
         db.Entry(wellcastlog).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(wellcastlog);
 }