public ActionResult FormDesignTemplate(FormDesignTemplateBE model)
        {
            bool success = false;
            int  id      = 0;

            FormDesignTemplateBE formDesignTemplate = FormLogic.FetchFormDesignTemplate(model.FormID);

            if (formDesignTemplate == null)
            {
                formDesignTemplate = new FormDesignTemplateBE();
            }
            formDesignTemplate.Design = model.Design != null?model.Design.ToUpper() : string.Empty;

            formDesignTemplate.Description = model.Description;
            formDesignTemplate.Active      = model.Active;

            if (model.FormID <= 0)
            {
                formDesignTemplate.CreatedBy           = "Habitat";
                formDesignTemplate.CreatedDateTime     = DateTime.Now;
                formDesignTemplate.LastUpdatedDateTime = DateTime.Now;
                success = FormLogic.AddFormDesignTemplate(formDesignTemplate, out id);
            }
            else
            {
                formDesignTemplate.UpdatedBy           = "Habitat";
                formDesignTemplate.LastUpdatedDateTime = DateTime.Now;
                success = FormLogic.UpdateFormDesignTemplate(formDesignTemplate);
            }
            return(Json(new { success, id }));
        }