/// <inheritdoc /> /// <summary> /// </summary> /// <returns></returns> public async Task <ICollection <ContextModel> > GetAll() { var contexts = (await _contextRepository.GetAll().ConfigureAwait(false)) .Select(AutoMapper.Mapper.Map <ContextModel>) .ToList(); return(contexts); }
public void OnGet() { Contexts = _contextRepository.GetAll(); }
public IEnumerable <Context> GetAll() { return(_contextRepository.GetAll()); }