Ransom (Royal Navy #1)
Lee Rowan

Although William is young, his innate talent has allowed him to quickly rise above his humble background and gain a reputation as a promising officer. The Royal Navy is his world, and in that world there is no room for anything as frivolous as romance. Then, in a twist of fate, the two men are abducted by a ruthless pirate who finds pleasure in toying with his captives. Thrown together in close quarters and wondering if they will survive, they're are faced with some difficult choices. William struggles with his growing feelings for David and, try as he might to dismiss them, he can't.
When David makes the ultimate sacrifice to protect the man he loves, the reason for it is clear and the passion that the men have denied for so long is realized for the first time. Before the lovers can have any sort of life together, they must first escape. After that, they face an even greater challenge is their love strong enough to survive a clandestine life under the ever-present threat of the Navy's implacable Articles of War?