Exemplo n.º 1
0
 protected override ActionResult RedirectBackToAction(FormSection section, int id)
 {
     return(RedirectToAction(section.ToString(), new { id, back = true }));
 }
Exemplo n.º 2
0
 protected override ActionResult RedirectToLastAction(FormSection section)
 {
     return(RedirectToAction(section.ToString(), new { id = FormDefinition.GetSectionLength(section) }));
 }
Exemplo n.º 3
0
 protected virtual ActionResult RedirectToLastAction(FormSection section)
 {
     return(RedirectToAction("Part", section.ToString(), new { id = FormDefinition.GetSectionLength(section) }));
 }
Exemplo n.º 4
0
 protected virtual string GetViewPath(FormSection section, int id)
 {
     return($"{section.ToString()}.{id}");
 }
Exemplo n.º 5
0
 protected virtual ActionResult RedirectBackToAction(FormSection section, int id)
 {
     return(RedirectToAction("Part", section.ToString(), new { id, back = true }));
 }
Exemplo n.º 6
0
 /// <summary>
 /// Returns a <see cref="RedirectToActionResult"/> for the specified action name with the
 /// <code>back</code> direction indicator in the query string.
 /// </summary>
 /// <param name="section">The form section.</param>
 /// <param name="actionName">The action name.</param>
 /// <returns>A <see cref="RedirectToActionResult"/> for the specified action name with the <code>back</code> indicator.</returns>
 protected virtual IActionResult RedirectBackToAction(FormSection section, string actionName)
 {
     return(RedirectToAction(actionName, section.ToString(), new { back = true }));
 }
Exemplo n.º 7
0
 /// <summary>
 /// Returns a <see cref="RedirectToActionResult"/> for the specified action name.
 /// </summary>
 /// <param name="section">The form section.</param>
 /// <param name="actionName">The action name.</param>
 /// <returns>A <see cref="RedirectToActionResult"/> for the specified action name.</returns>
 protected virtual IActionResult RedirectToAction(FormSection section, string actionName)
 {
     return(RedirectToAction(actionName, section.ToString()));
 }
Exemplo n.º 8
0
 protected override string GetViewPath(FormSection section, int id)
 {
     return($"{section.ToString()}.{id}");
 }
Exemplo n.º 9
0
 protected string GetActionPath(FormSection section, int id)
 {
     return($"Apply/{section.ToString()}/Part/{id}");
 }
Exemplo n.º 10
0
 public void SetSubmittedPage(FormSection section, string actionName)
 {
     SetString("LastSubmittedPageSection", section.ToString());
     SetString("LastSubmittedPageName", actionName);
 }
Exemplo n.º 11
0
 public void SetSubmittedPage(FormSection section, int id)
 {
     SetString("LastSubmittedPageSection", section.ToString());
     SetInt("LastSubmittedPageId", id);
 }