public async Task <ActionResult> GetAll()
        {
            try
            {
                var result = await _ebookRepository.GetAll();

                return(Ok(result));
            }
            catch (System.Exception ex)
            {
                _logger.LogError(ex.Message);
                return(BadRequest());
            }
        }
Beispiel #2
0
 public IQueryable <Ebook> GetAll(string[] includes = null)
 {
     return(_ebookRepository.GetAll());
 }