public async Task <IActionResult> SubmitFromForm([FromRoute] int formId, [FromForm] Dictionary <string, string> form) { //return to previous url with success / error?? //maybe show a generic view with a success / return button var response = await _submitService.SubmitForm(formId, form); return(Redirect("http://forms.jrdn.tech/form/submit/" + formId + "?response=" + JsonConvert.SerializeObject(new DataResponse <string>() { Success = response.Success, Errors = response.Errors, Data = Request.Headers["Referer"].ToString() }))); //this.GenerateResponse(await _submitService.SubmitForm(formId, form)); }