public ActionResult Create()
        {
            var seoToolStaticPageEdit = new SEOToolStaticPageEdit
            {
            };

            return(View(seoToolStaticPageEdit));
        }
        public ActionResult Create(SEOToolStaticPageEdit seoToolStaticPageEdit)
        {
            if (ModelState.IsValid)
            {
                var seoToolStaticPageUpdate = Mapper.Map <SEOToolStaticPageUpdate>(seoToolStaticPageEdit);

                _seoToolStaticPageCommandService.Add(seoToolStaticPageUpdate);
                return(RedirectToRoute("admin-seotool-staic-pages"));
            }

            return(View(seoToolStaticPageEdit));
        }
        public ActionResult Edit(SEOToolStaticPageEdit seoToolStaticPageEdit)
        {
            if (!ModelState.IsValid)
            {
                return(View(seoToolStaticPageEdit));
            }

            var seoToolStaticPageUpdate = Mapper.Map <SEOToolStaticPageUpdate>(seoToolStaticPageEdit);

            _seoToolStaticPageCommandService.Update(seoToolStaticPageUpdate);
            TempData["Info"] = "SEO Tool updated";
            return(RedirectToRoute("admin-seotool-staic-edit", new { seoToolStaticPageEdit.Id }));
        }