//GET: Static Page
        public ActionResult CreateStaticPages()
        {
            StaticPageVM model = new StaticPageVM()
            {
                NewPage = new StaticPage()
                {
                    Status = new Status(),
                    User = new User()
                }

            };
            return View(model);
        }
        public ActionResult CreateStaticPages(StaticPageVM model)
        {
            var staticPage = new StaticPage();

            staticPage = model.NewPage;
            staticPage.StaticPageContent = model.HtmlContent;
            if (model.NewPage.Status == null)
            {
                staticPage.Status = new Status()
                {
                    StatusID = 1

                };
            }
            else
            {
                staticPage.Status.StatusID = model.NewPage.Status.StatusID;
            }
            var ops = OperationsFactory.CreateStaticPageOps();

            ops.SaveStaticPage(staticPage);

            return RedirectToAction("Index", "Home");
        }