public async Task <IActionResult> GetAll() { var diaries = await _diaryService.GetAll(); _logger.LogInformation($"Successfully sent diary all diary."); return(Ok(diaries)); }
public async Task <ActionResponse <List <DiaryDto> > > GetAll() { return(await diaryService.GetAll()); }