public IActionResult GetLog() { var result = _elementsService.GetLog(); if (result == null) { return(BadRequest("Invalid credentials")); } else { return(Ok(result)); } }