public ActionResult smazatKM(String _id)
        {
            int id = int.Parse(_id);
            KombinaceMoznostiDao dao   = new KombinaceMoznostiDao();
            KombinaceMoznosti    model = dao.GetById(id);

            dao.Delete(model);

            return(RedirectToAction("KombinaceMoznosti"));
        }
        public ActionResult editKM(String _id)
        {
            ViewBag.platby  = new PlatetbniMoznostDao().getAktiv(false);
            ViewBag.dopravy = new DopravaMoznostDao().getAktiv(false);
            int id = int.Parse(_id);
            KombinaceMoznostiDao dao   = new KombinaceMoznostiDao();
            KombinaceMoznosti    model = dao.GetById(id);

            return(View(model));
        }
        public ActionResult aktivaceKM(String _id)
        {
            int id = int.Parse(_id);
            KombinaceMoznostiDao dao   = new KombinaceMoznostiDao();
            KombinaceMoznosti    model = dao.GetById(id);

            if (model.Aktivovano)
            {
                model.Aktivovano = false;
            }
            else
            {
                model.Aktivovano = true;
            }


            dao.Update(model);
            return(RedirectToAction("KombinaceMoznosti"));
        }