예제 #1
0
        /// <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);
        }
예제 #2
0
 public void OnGet()
 {
     Contexts = _contextRepository.GetAll();
 }
예제 #3
0
 public IEnumerable <Context> GetAll()
 {
     return(_contextRepository.GetAll());
 }