public async Task GetAllAmendments() { var amendments = await _amendmentService.GetAllAsync(); var model = _mapper.Map <List <AmendmentDetailsViewModel> >(amendments); await Clients.Caller.SendAsync("amendment.getAllAmendmentsReturn", model); }
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)); }