public ActionResult CreateFromOffice(website site)
        {
            try
            {
                using (var db = new SDES_DirectoryEntities())
                {
                    db.websites.Add(site);
                    db.SaveChanges();
                }

                return RedirectToAction("Details", "office", new { id = site.officeId });
            }
            catch
            {
                return View(site);
            }
        }
        public ActionResult Create(website site)
        {
            try
            {
                using (var db = new SDES_DirectoryEntities())
                {
                    db.websites.Add(site);
                    db.SaveChanges();
                }

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
        public ActionResult Delete(int id, website site)
        {
            try
            {
                using (var db = new SDES_DirectoryEntities())
                {
                    var website = db.websites.Find(id);
                    db.Entry(website).State = EntityState.Deleted;
                    db.SaveChanges();
                }

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
        public ActionResult EditFromOffice(int id, website site)
        {
            try
            {
                using (var db = new SDES_DirectoryEntities())
                {
                    db.Entry(site).State = EntityState.Modified;
                    db.SaveChanges();
                }

                return RedirectToAction("Details", "office", new { id = site.officeId });
            }
            catch
            {
                return View();
            }
        }
        public ActionResult Edit(int id, website site)
        {
            try
            {
                using (var db = new SDES_DirectoryEntities())
                {
                    db.Entry(site).State = EntityState.Modified;
                    db.SaveChanges();
                }

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
        public ActionResult DeleteFromOffice(int id, website website)
        {
            try
            {
                using (var db = new SDES_DirectoryEntities())
                {
                    var site = db.websites.Find(id);
                    db.Entry(site).State = EntityState.Deleted;
                    db.SaveChanges();
                    return RedirectToAction("Details", "office", new { id = site.officeId });
                }

            }
            catch
            {
                return View();
            }
        }