private void PrintLecturesAsync() { var lectures = _lecturesService.GetAll(); var viewModels = _mapper.Map <IEnumerable <MissedClassViewModel> >(lectures); _lecturesMenu.PrintAll(viewModels); }
public IActionResult GetAll() { var result = _missedClassService.GetAll(); _logger.LogInformation("Fetched missed classes"); return(Ok(result)); }