public ActionResult CreateCV(CurriculumVitaeModels cv)
        {
            var userId = this.User.Identity.GetUserId();

            if (cv.PhotoBytes != null)
            {
                if (cv.PhotoBytes != null || cv.PhotoBytes.Length > 0)
                {
                    cv.PhotoLink = GetLink(userId);
                    SaveImage(cv.PhotoLink, cv.PhotoBytes);
                }
            }

            this.table[userId] = cv;

            return Json(userId, JsonRequestBehavior.AllowGet);
            //return RedirectToAction("PreviewDocument");
        }
        public ActionResult Index()
        {
            ViewBag.CurrentPage = "selected";//This is very bad practice;

            var userId = this.User.Identity.GetUserId();
            CurriculumVitaeModels model;

            if (!this.table.Contains(userId))
            {
                model = new CurriculumVitaeModels();

                this.table.Insert(userId, model);
            }
            else
            {
                model = this.table[userId];
            }

            return View(model);
        }