public async Task <ActionResult> Edit(int id) { var amendment = await _amendmentService.GetAsync(id); if (amendment == null) { return(NotFound()); } var model = _mapper.Map <AmendmentEditViewModel>(amendment); model.Languages = await _languageDataService.GetAllAsync(); return(View(model)); }
public async Task GetAmendment(int amendmentId) { var amendment = await _amendmentService.GetAsync(amendmentId); await Clients.Caller.SendAsync("amendment.amendmentReturn", amendment); }