public async Task <IActionResult> GetBorrowById(long id) { try { var borrow = await _borrowService.GetById(id); return(Ok(borrow)); } catch (NullReferenceException e) { return(NotFound($"Borrow with id = {id} not found.")); } }