public ActionResult EditContact()
        {
            var contact = _db.Informations.FirstOrDefault(i => i.InformationTypeId == (int)InformationTypes.Contacts);
            var model   = new BaseInformationModel(contact);

            return(View(model));
        }
        public ActionResult EditAbout()
        {
            var about = _db.Informations.FirstOrDefault(i => i.InformationTypeId == (int)InformationTypes.About);
            var model = new BaseInformationModel(about);

            return(View(model));
        }
        public ActionResult EditContact(BaseInformationModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            var contact = _db.Informations.FirstOrDefault(i => i.InformationTypeId == (int)InformationTypes.Contacts);

            model.ApplyChange(contact);
            _db.SaveChanges();
            return(RedirectToAction("Contact"));
        }