public async Task <IActionResult> UpdateDiary(int Id, UpdateDiaryRequest request) { if (Id != request.Id) { return(BadRequest()); } return(Ok(await _diaryService.UpdateDiaryRequest(request))); }
public async Task <IActionResult> UpdateDiary(int Id, UpdateDiaryRequest request) { if (Id != request.Id) { return(BadRequest()); } return(Ok(await _diaryService.UpdateDiaryRequest(request))); }