public async Task <IActionResult> Update([FromBody] DiaryDTO diaryDto) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } await _diaryService.UpdateEntry(diaryDto); _logger.LogInformation($"Diary has been update"); return(Ok()); }