public EditUserAwardViewModel PrepareEditCurriculumVitaeAwards() { EditUserAwardViewModel model = new EditUserAwardViewModel(); foreach (var item in _userService.GetAwards()) { model.UserAwards.Add(new UserAwardViewModel() { Id = item.Id, AwardDescription = item.AwardDescription, AwardTitle = item.AwardTitle }); } return(model); }
public IActionResult Awards() { EditUserAwardViewModel model = _curriculumVitaeViewModelFactory.PrepareEditCurriculumVitaeAwards(); return(View(model)); }