Exemple #1
0
        public void Update()
        {
            const int    id    = 1;
            const string name  = "首页";
            var          model = MenuDao.Get(id);

            model.Name = name;

            var result = MenuDao.Update(model);

            Assert.AreEqual(1, result);
        }
Exemple #2
0
 public Menu Get(string code)
 {
     return(_menuDao.Get(code));
 }
        public MenuInfo Get(string menuId)
        {
            ArgumentHelper.AssertNotNullOrEmpty(menuId, "menuId is null or empty");

            return(MenuDao.Get(menuId));
        }