public ActionResult Edit(int id, MyGreatTable model)
        {
            try
            {
                // TODO: Add edit logic here

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View(model));
            }
        }
        public ActionResult Create(MyGreatTable model)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    using (MyDbContext context = new MyDbContext())
                    {
                        context.MyGreatTables.Add(model);
                        context.SaveChanges();
                    }

                    return(RedirectToAction("Index"));
                }
                catch
                {
                    return(View());
                }
            }
            else
            {
                return(View(model));
            }
        }