public ActionResult Render(string formReference) { var form = _repository.GetByReference(new Guid(formReference)); if (form != null) { return(PartialView("Form", new EmailerViewModel { SubmissionStamp = Security.GenerateSecurityToken(), FormReference = form.Reference.ToString() })); } return(null); }
public Form GetByReference(Guid reference) { return(_repository.GetByReference(reference)); }