public ActionResult Create()
        {
            var model = new FormsRecord();

            model.Published = true;

            return(View(model.ToModel()));
        }
        public static FormsRecord ToEntity(this FormModel model)
        {
            if (model == null)
            {
                return(null);
            }

            var entity = new FormsRecord
            {
                Id          = model.Id,
                FormName    = model.FormName,
                Published   = model.Published,
                AdminEmails = model.AdminEmails
            };

            return(entity);
        }
        public static FormModel ToModel(this FormsRecord entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var model = new FormModel
            {
                Id          = entity.Id,
                FormName    = entity.FormName,
                Published   = entity.Published,
                AdminEmails = entity.AdminEmails
            };

            return(model);
        }