Exemplo n.º 1
0
        public static ResultBOL <int> InsertOrUpdate(MenuBOL obj)
        {
            string stored = "sp_Menu_Insert_Update";
            var    result = DataAccessHelpers.ExecuteStored(stored, obj.GetParameters());

            return(result);
        }
Exemplo n.º 2
0
        public static ResultBOL <int> InsertOrUpdate(MenuBOL obj)
        {
            //string type = GetType(obj.ParentId);
            //if (!string.IsNullOrEmpty(type))
            //{
            //    switch (type)
            //    {
            //        case "DichVu":
            //            return NewsDAL.InsertOrUpdate(new NewsBOL() {
            //                Name_EN = obj.Name_EN,
            //                Name_VN = obj.Name_VN,
            //                ImageLink = obj.Image,
            //                Type = type,
            //                ParentId = obj.ParentId
            //            });

            //        default:
            //            break;
            //    }
            //}

            string stored = "sp_Menu_Insert_Update";
            var    result = DataAccessHelpers.ExecuteStored(stored, obj.GetParameters());

            return(result);
        }