public async Task <IActionResult> UpdateDiaryPublic(string childID, int Id, UpdateDiaryPublicRequest request) { if (childID != request.ChildId || Id != request.Id) { return(BadRequest()); } return(Ok(await _diaryService.UpdateDiaryPublicRequest(request))); }