public ActionResult Edit(PublicVacation publicVacation)
 {
     if (ModelState.IsValid)
     {
         _db.Entry(publicVacation).State = EntityState.Modified;
         _db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(publicVacation));
 }
        public ActionResult Create(PublicVacation publicVacation)
        {
            if (ModelState.IsValid)
            {
                _db.PublicVacations.Add(publicVacation);
                _db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(publicVacation));
        }