public ActionResult SetAccountDetails(AccountViewModel viewModel)
        {
            var idCookie = HttpContext.Request.Cookies["id"];
            User user;
            if (idCookie?.Value != null)
            {
                user = GetDatabase().Get<User>(idCookie.Value);
            }
            else
            {
                user = new User();
            }

            user.Name = viewModel.Name;

            GetDatabase().Save(user);

            idCookie = idCookie ?? new HttpCookie("id");

            idCookie.Value = user.Id;

            HttpContext.Response.Cookies.Set(idCookie);

            return RedirectToAction("account");
        }
        public ActionResult Account()
        {
            var idCookie = HttpContext.Request.Cookies["id"];

            var viewModel = new AccountViewModel();
            

            if (idCookie?.Value != null)
            {
                var user = GetDatabase().Get<User>(idCookie.Value);
                viewModel.Name = user?.Name;
            }

            return View(viewModel);
        }