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

Add() public static method

public static Add ( FormRole formRole ) : int
formRole AJH.CMS.Core.Entities.FormRole
return int
        public static int Add(FormRole formRole)
        {
            List<FormRole> formsRoles2 = GetFormsRoles(formRole.FormID, formRole.RoleID);
            if (formsRoles2 != null && formsRoles2.Count > 0)
                throw new Exception("This role already exists, please choose another role");

            return FormRoleDataMapper.Add(formRole);
        }