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

            return(View(sessao));
        }