Пример #1
0
        public async Task <IHttpActionResult> GetAll()
        {
            var articles = await repository.GetAllAsync();

            return(new JsonResult <IEnumerable <Article> >(articles, serializerSettings, Encoding.Unicode, this));
        }
Пример #2
0
 public async Task <IEnumerable <Article> > Get() => await _articlesRepository.GetAllAsync();
Пример #3
0
 public async Task <List <Article> > GetAllAsync()
 {
     return(await _articlesRepository.GetAllAsync());
 }