protected override void Initialize(RequestContext requestContext)
 {
     if (MembershipService == null) { MembershipService = new AccountMembershipService(); }
     if (FormsRepository == null) { FormsRepository = new RepositoryForms(); }
     if (CompaniesRepository == null) { CompaniesRepository = new RepositoryCompanies(); }
     base.Initialize(requestContext);
 }
 protected override void Initialize(RequestContext requestContext)
 {
     if (FormsRepository == null) { FormsRepository = new RepositoryForms(); }
     base.Initialize(requestContext);
 }
 public ActionResult Fields(int formId)
 {
     RepositoryForms repository = new RepositoryForms();
     Form form = repository.Get(formId);
     return Json(form.Fields.Select(x => new { value = x.FieldId, text = x.Name }), JsonRequestBehavior.AllowGet);
 }