public IActionResult Index()
        {
            if (HttpContext.Session.GetString("Name") == null)
            {
                return(RedirectToAction("Login", "Admin"));
            }
            ViewModel mymodel = new ViewModel();

            mymodel.Menus       = menuService.GetAll().Data;
            mymodel.CreatePages = createPageService.GetAll().Data;
            return(View(mymodel));
        }
        public IActionResult Get()
        {
            var createPages = service.GetAll().Data;

            return(Ok(createPages));
        }