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

Add() public static method

public static Add ( Menu menu ) : int
menu AJH.CMS.Core.Entities.Menu
return int
        public static int Add(Menu menu)
        {
            if (menu.ParentObjectID > 0)
            {
                Menu menu2 = GetMenu(menu.ParentObjectID, menu.LanguageID);
                if (menu2 != null)
                    throw new Exception("Menu is exists in the same language, please choose another language");
            }
            return MenuDataMapper.Add(menu);
        }