public async Task <IActionResult> GetBookDetailsAsync(string path) { if (string.IsNullOrWhiteSpace(path)) { return(BadRequest("Path is empty.")); } try { return(Ok(await _bookProvider.GetBookDetailsAsync(path))); } catch (Exception e) { // TODO: Handle exception return(BadRequest(e)); } }