public async Task <IActionResult> DeleteLog(int id) { bool isDeleted = await _service.DeleteLog(id); if (isDeleted) { return(StatusCode(200)); } return(StatusCode(400)); }