コード例 #1
0
        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);
        }
コード例 #2
0
 public Form GetByReference(Guid reference)
 {
     return(_repository.GetByReference(reference));
 }