public ActionResult Edit(Hobbies hobbies)
 {
     if (ModelState.IsValid)
     {
         db.Entry(hobbies).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(hobbies);
 }
        public ActionResult Create(Hobbies hobbies)
        {
            if (ModelState.IsValid)
            {
                db.Hobbies.Add(hobbies);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(hobbies);
        }