public async Task <IActionResult> Delete(int id) { if (await _diaryService.SoftDelete(id)) { return(Ok()); } return(BadRequest()); }