示例#1
0
        public async Task GetAllAmendments()
        {
            var amendments = await _amendmentService.GetAllAsync();

            var model = _mapper.Map <List <AmendmentDetailsViewModel> >(amendments);
            await Clients.Caller.SendAsync("amendment.getAllAmendmentsReturn", model);
        }
示例#2
0
        public async Task <ActionResult> Index()
        {
            var amendments = await _amendmentService.GetAllAsync();

            var model = _mapper.Map <List <AmendmentDetailsViewModel> >(amendments);

            ViewBag.Languages = await _languageDataService.GetAllAsync();

            return(View(model));
        }