Esempio n. 1
0
        [Authorize]  /* For Testing Prefilled Forms */
        public ActionResult Index()
        {
            ViewBag.Title = "Embassy Consular Appointment Form (Admin)";
            ConsularApptVM ca = CATestData.GetNewAppt();

            return(View(ca));
        }
Esempio n. 2
0
        [Authorize]  /* For Testing Prefilled Forms */
        public ActionResult Index()
        {
            ViewBag.Title = _formTile + " (Admin)";

            ConsularApptVM model = CATestData.GetNewAppt(0);

            ViewBag.PartialHtml = this.GetPartialHtmlViewName(model.RequesterType);
            return(View(model));
        }
Esempio n. 3
0
        // GET: ConsularAppt/Create
        public ActionResult Create()
        {
            ViewBag.Title = "Embassy Consular Appointment Form";
            if (Request.IsAuthenticated)
            {
                ViewBag.Title = "Embassy Consular Appointment Form (Admin)";
            }

            if (EmWebAppConfig.PrefilledFormTest)
            {
                return(View(CATestData.GetNewAppt()));
            }

            return(View(new ConsularApptVM()));
        }
Esempio n. 4
0
        // GET: ConsularAppt/Create
        public ActionResult Create(int Id)
        {
            ViewBag.Title = _formTile;
            if (Request.IsAuthenticated)
            {
                ViewBag.Title = _formTile + " (Admin)";
            }

            var model = new ConsularApptVM();

            model.RequesterType = Id;
            if (DpWebAppConfig.PrefilledFormTest)
            {
                model = CATestData.GetNewAppt(Id);
            }

            ViewBag.PartialHtml = this.GetPartialHtmlViewName(model.RequesterType);

            return(View(model));
        }