예제 #1
0
파일: Form1.cs 프로젝트: jaapyang/books
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            var service      = new MenuItemDomainService();
            var menuitemList = service.GetAll().Where(x => x.Context == null || x.Context.Length < 10)
                               .Select(x => new MenuItemInfoDto
            {
                Id      = x.Id,
                Url     = x.Url,
                Content = string.Empty
            }).ToList();

            var handler = new UpdateAllChapterReuqestHandler();

            handler.SendMessageProcesser(menuitemList);
        }
예제 #2
0
파일: Program.cs 프로젝트: jaapyang/books
 static Program()
 {
     _bookDomainService     = new BookDomainService();
     _menuItemDomainService = new MenuItemDomainService();
 }