Exemplo n.º 1
0
        public EditModalModel(IBookmarkAppService bookAppService, ICategoryAppService categoryAppService)
        {
            _bookAppService     = bookAppService;
            _categoryAppService = categoryAppService;

            PagedAndSortedResultRequestDto input            = new PagedAndSortedResultRequestDto();
            PagedResultDto <CategoryDto>   categoryDtoPaged = _categoryAppService.GetListAsync(input).Result;

            foreach (CategoryDto item in categoryDtoPaged.Items)
            {
                CategorysItem.Add(new SelectListItem(item.Name, item.Id.ToString()));
            }
        }
 public BookmarksController(IBookmarkAppService bookmarkAppService)
 {
     _bookmarkAppService = bookmarkAppService;
 }