public ActionResult Edit(LogModel logmodel)
 {
     if (ModelState.IsValid)
     {
         context.Entry(logmodel).State = EntityState.Modified;
         context.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(logmodel);
 }
        public ActionResult Create(LogModel logmodel)
        {
            if (ModelState.IsValid)
            {
                context.LogModels.Add(logmodel);
                context.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(logmodel);
        }