public async Task <IActionResult> Get() { try { var logs = await _repository.GetAsync(); return(Ok(logs)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }