AJH.CMS.Core.Data.FormManager.Add C# (CSharp) Method

Add() public static method

public static Add ( Form form ) : int
form AJH.CMS.Core.Entities.Form
return int
        public static int Add(Form form)
        {
            Form form2 = GetForm(form.Code);
            if (form2 != null)
                throw new Exception("There is another form has the same code, please choose another code");

            return FormDataMapper.Add(form);
        }