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

            mymodel.Constants = constantService.GetAll().Data;
            return(View(mymodel));
        }
        public IActionResult Get()
        {
            var constants = service.GetAll().Data;

            return(Ok(constants));
        }