コード例 #1
0
        public async Task <IActionResult> GetAll()
        {
            var diaries = await _diaryService.GetAll();

            _logger.LogInformation($"Successfully sent diary all diary.");

            return(Ok(diaries));
        }
コード例 #2
0
 public async Task <ActionResponse <List <DiaryDto> > > GetAll()
 {
     return(await diaryService.GetAll());
 }