[Authorize] /* For Testing Prefilled Forms */ public ActionResult Index() { ViewBag.Title = "Embassy Consular Appointment Form (Admin)"; ConsularApptVM ca = CATestData.GetNewAppt(); return(View(ca)); }
[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)); }
// 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())); }
// 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)); }